Desktop break reminder for Ubuntu and macOS.
python3 -m venv .venv
source .venv/bin/activate
python -m pip install -e .
rsteyeRun it from a logged-in graphical desktop session.
Set these environment variables before starting:
export POPUP_INTERVAL=60 # minutes between reminders
export POPUP_DURATION=60 # seconds for each breakThe app also reads .env from ~/.config/rsteye/ on Ubuntu or
~/Library/Application Support/RstEye/ on macOS.
Install the build dependency:
python -m pip install -e '.[build]'Validate the bundled assets:
python scripts/validate_resources.pyBuild the Ubuntu binary:
python -m PyInstaller --clean --noconfirm --name rsteye --onefile --windowed \
--paths src \
--add-data "src/rsteye/resources/med.gif:rsteye/resources" \
--add-data "src/rsteye/resources/rsteye.png:rsteye/resources" \
--hidden-import=PIL.ImageTk \
--additional-hooks-dir=packaging/pyinstaller/hooks app.pyBuild the macOS app by running the same command with --onedir, the macOS
icon, and --osx-bundle-identifier com.rsteye.rsteye.