WinEyes is a Windows implementation of the classic Unix/Linux xeyes utility, built with C# and WPF.
WinEyes displays a pair of eyes on your screen that follow your mouse cursor, just like the classic xeyes application found in X Window System environments. The eyes track your mouse cursor in real-time, creating a fun and nostalgic desktop accessory.
- Transparent Window: Eyes appear to float on your desktop
- Always on Top: The eyes remain visible above other windows
- Mouse Tracking: The eyes follow your mouse cursor
- Context Menu: Right-click to access options:
- Move: Click and drag to reposition
- Resize: Small, Medium, or Large options
- Exit: Close the application
This project was created to demonstrate:
- How classic Unix/Linux utilities can be reimplemented in modern Windows environments
- The power of GitHub Copilot's agent mode for quickly building functional applications
- The ease of working with transparent, borderless windows in WPF
This project was generated entirely using GitHub Copilot, demonstrating the AI's ability to create a complete working application from a simple description.
The project was initiated with the following prompt:
please write a xeyes program! the requirements are:
- the program must look like and behave like the famous xeyes known from unix systems.
- the program must run in Windows 11. Prefered technology is C#/WPF. Therefore the name of the program is "WinEyes".
- the program window should have no borders, the background should be transparent.
- on startup the eyes must be located in the right upper corner of the main screen.
- right click on one of the eyes must open a menu that offers moving and sizing the eyes or terminating the process.
- the project will be published on github and must contain a readme file in markdown format.
this project should demonstrate how easy programming can be and how powerful the github Copilot Agent mode is.
the readme file should describe what the motivation was and how this project was created, including this prompt.
please also add a summarization of the plan and the steps you executed to write this program.
- Project Setup: Created a new C#/WPF project targeting .NET 9
- Window Configuration: Configured a borderless, transparent window
- Eye Design: Implemented the eye graphics using WPF ellipses
- Mouse Tracking: Added real-time tracking of the mouse cursor
- Pupil Movement: Calculated proper pupil positioning based on mouse location
- Window Positioning: Set initial position to top-right corner of the screen
- Context Menu: Added right-click menu for movement, resizing, and exiting
- User Interaction: Implemented dragging for window movement
- Documentation: Created this README.md with screenshots and instructions
To run WinEyes:
- Clone the repository
- Open the solution in Visual Studio 2022 or later
- Build and run the project
- Windows 10/11
- .NET 9.0 SDK or later
- Visual Studio 2022 or later (for development)
This project is open source and available under the MIT License.
- Inspired by the classic xeyes utility from the X Window System
- Created with the assistance of GitHub Copilot
