Chilly Eye is a simple break reminder application built with Python and Tkinter. It helps you take regular breaks by showing a popup at specified intervals. The application supports snoozing and allows you to customize the snooze duration.
Chilly Eye is designed to help you follow the 20-20-20 Rule, which is a simple guideline to reduce eye strain caused by prolonged screen time:
Every 20 minutes, take a 20-second break. Look at something 20 feet away. This rule helps relax the eye muscles and prevent digital eye strain, making it an essential practice for those who spend long hours in front of screens.
- Displays a popup to remind you to take a break.
- Follows the 20-20-20 Rule:
- Every 20 minutes, take a 20-second break.
- Look at something 20 feet away to reduce eye strain.
- Allows snoozing for a custom duration.
- Includes an "Exit" button to close the application.
- Configurable interval between reminders.
Clone the repository to your local machine:
git clone <repository-url>
cd chilly_eyeInstall the required dependencies using Poetry:
poetry install- Prepare the Icon Before building the executable, convert your icon image (alarm.png) to the required .icns format (for macOS) or .ico format (for Windows). Use the following command:
poetry run img-converter alarm.png alarm.icnsThen:
- Replace
alarm.pngwith the path to your source image; - The output file will be
alarm.icns;
- Build the Executable Use PyInstaller to create the standalone executable:
poetry run pyinstaller --clean --onefile --windowed --icon=alarm.icns --add-data "notification.mp3:." chilly_eye/main.py --name "EyeBreakReminder" --noconfirm- --clean: Clears PyInstaller's cache before building.
- --onefile: Packages everything into a single executable file.
- --windowed: Ensures the app runs without a terminal window.
- --icon=alarm.icns: Specifies the custom icon for the application.
- --noconfirm: Skips confirmation prompts during the build process.
- --add-data: add the additional file selected to the build. (like the notification)
The executable will be created in the dist folder.
After executed the build..
Open the application using:
cd path/to/project
open dist/EyeBreakReminder.appwant to add it to your programs!? then just go into dist folder >> Right click >> "Make an alias" and bring it in application. Enjoy
Open the application using:
cd path/to/project
./dist/EyeBreakReminderNavigate to the dist folder and double-click the program to run it.
Ensure you have the required Python version (^3.10) with tkinter installed. The application icon must be in .icns format for macOS and .ico format for Windows. If you encounter issues with the icon, ensure it is properly formatted and valid.