Skip to content

About

A reminder to get up from your desk on a regular basis. Full-screen reminders from the system tray, with exercises you configure yourself. Windows and Linux.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

MoveYourAss

MoveYourAss

A reminder to get up from your desk on a regular basis.

version 1.01 · (c) 2026 PA1DVB · GPL-3.0

The app sits quietly in the system tray and, at a fixed interval, shows a full-screen reminder telling you what to do. Everything stays local: no account, no internet, no installer. One folder you can copy anywhere.

The app starts in English; Dutch can be selected in the settings.

Named after the Scooter track Move Your Ass! (1995). Consider it the soundtrack while you do your calf raises.

The reminder

Requirements

Windows 10 or 11, or a Linux desktop. Python 3.8 or newer to run from source.

Install and run

Windows

pip install -r requirements.txt
pythonw main.py

Use pythonw rather than python so no black console window stays open. When troubleshooting, do use python main.py so you can see any output.

Linux

sudo apt install python3-tk libxss1 libxinerama1 xdg-utils
pip install -r requirements.txt
python3 main.py

pystray also needs a tray backend. Install gir1.2-appindicator3-0.1, or gir1.2-ayatanaappindicator3-0.1 on newer distributions. Without one, install python3-xlib and set PYSTRAY_BACKEND=xorg, which talks to the system tray directly.

To see what your machine actually supports:

python main.py --check
python main.py --version

--check prints one line per feature and names the package to install for anything that is missing. Both flags deliberately run before the GUI is loaded, so they still work when tkinter is not installed yet.

Once started, an icon appears in the system tray. There is no main window; everything is done from the icon's right-click menu.

How it works

By default a full-screen amber reminder appears every 45 minutes, on the monitor your mouse is on. It shows a randomly chosen exercise set, never the same one twice in a row. Below that, in a separate colour, are a few random entries from the "not now" list. A counter shows how long the screen has been open.

Two actions, by mouse or keyboard:

Action Key Result
Done Enter Screen closes, the main 45 minute timer starts again
Later Escape Screen closes and comes back after 5 minutes. Unlimited; the main timer is not reset

Snooze often enough and the buttons stay disabled for a few seconds first, long enough to actually read what the screen is asking of you. That kicks in from the third snooze by default, and escalate_after_snoozes = 0 switches it off.

System tray

Right-clicking the icon gives you:

  • the time until the next reminder
  • how often you completed or snoozed a reminder today
  • pause for 30 or 60 minutes, or until you turn it back on
  • reset the timer now
  • open the statistics
  • open the settings
  • quit

While paused, the icon turns grey with a pause symbol. Double-clicking the icon opens the settings.

When the countdown starts

The countdown does not simply start because the pc is on. It starts the moment you actually use it: at the first mouse movement or key press. Until then it stays at a full interval. That way you do not walk back to your desk and get an immediate reminder because the app started with Windows while you were still getting coffee.

The same applies after an interruption: after sleep, unlocking, or a long absence it waits for your first mouse movement again. Turn off start_on_activity to have it start counting immediately instead.

When you get no reminder

  • Outside the configured working hours (08:00 to 18:00 by default) or on a day that is not a working day (Monday to Friday by default).
  • While the screen is locked or the screensaver is running.
  • When you have not touched the keyboard or mouse for over 10 minutes; the app then assumes you have already been away from your desk.
  • After the pc has been asleep. On waking, the timer restarts instead of firing straight away.
  • During a full-screen app or a presentation. The desktop reports this itself, and the reminder is postponed, not skipped: it appears as soon as your presentation or film is over.

There is never more than one reminder screen open at a time.

Settings

The settings window

Settings live in settings.json, next to the application. The window under Settings... in the tray menu covers everything except the exercises themselves; those you edit in the file. The Edit exercises... button opens it straight away, and Preview shows what your colours actually look like full-screen.

No restart needed. As soon as you save settings.json it is picked up within a couple of seconds. If the JSON is broken, the running settings simply stay in place until you fix it.

Setting Default Meaning
language "en" "en" or "nl"
interval_minutes 45 Minutes between reminders
snooze_minutes 5 Minutes to wait after "Later"
work_start "08:00" Start of working hours
work_end "18:00" End of working hours
work_days [1,2,3,4,5] Working days, 1 = Monday through 7 = Sunday
idle_reset_minutes 10 Idle minutes after which you count as "was away"
start_on_activity true Only start counting after the first mouse movement or key press
defer_when_busy true Postpone during full-screen apps and presentations
escalate_after_snoozes 3 Disable the buttons briefly from this many snoozes on, 0 = off
escalate_delay_seconds 5 How long the buttons stay disabled
sound_enabled false Soft sound with each reminder
background_color #F59E0B Background colour of the reminder (amber)
text_color #1C1917 Colour of the main text
warning_color #7F1D1D Colour of the "not now" line
autostart false Start automatically when you log in
avoid_count 3 How many "not now" items are shown each time
exercise_sets see below The exercise sets
avoid see below What not to do

Working hours may run past midnight, for example 22:00 to 06:00. The working day then counts as the day the shift started: with Friday enabled, that shift runs into Saturday morning. If start and end are equal, the whole day counts.

Invalid or missing values are silently replaced by their default, so the app always starts.

autostart writes an entry under HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run on Windows, and ~/.config/autostart/moveyourass.desktop on Linux. Both record the path the app was started from, so if you move the folder, switch the setting off and on again.

Exercises

exercise_sets is a list of sets, and each set is a list of lines. One set is picked at random per reminder:

"exercise_sets": [
  ["2 minutes of walking", "10 calf raises"],
  ["1 minute of walking", "10 wall push-ups"]
],
"avoid": ["deep squats", "hamstring stretches"],
"avoid_count": 3

From avoid, avoid_count entries are picked at random each time. Set avoid_count to 0 to leave that line out entirely. A single set is fine; you will then always see the same one. A flat list of lines is treated as one set, so this works too:

"exercise_sets": ["2 minutes of walking", "10 calf raises"]

The bundled sets deliberately avoid deep hip flexion, deep knee flexion and hamstring lengthening, in line with the default avoid list. They are a starting point, not medical advice — adjust them to whatever your physiotherapist tells you.

Example configurations

Two examples sit next to the application:

  • settings.json.example — English, and also what you get on first run
  • settings.json.nl.example — Dutch

To switch to Dutch, pick it in the settings: the bundled exercises come along automatically, as long as you have not customised them. You can also copy settings.json.nl.example over settings.json.

Log and statistics

The statistics window

Every completed or snoozed reminder is written to log.csv, next to the application. Semicolon separated, so Excel opens it correctly right away.

timestamp;action;snoozes
2026-07-30 09:15:04;snoozed;1
2026-07-30 09:20:31;done;1
2026-07-30 10:05:48;done;0

For snoozed, the number is how often you had snoozed so far; for done, how often you snoozed in total before doing it. A 0 therefore means: done straight away.

Statistics... in the tray menu reads that file back and shows totals per week and per month, including the share you did without snoozing at all.

The header and the values are always in English, even when the app is set to Dutch. That keeps a log built up over years readable in one go, even if you change language later on.

Building a single .exe

pip install pyinstaller
python icon.py
python versioninfo.py
pyinstaller --noconfirm --onefile --windowed --name MoveYourAss --icon icon.ico --version-file version_info.txt --hidden-import pystray._win32 main.py

Or just run build.bat, which does all four steps.

python icon.py draws icon.ico from the same code the tray icon uses, so the executable carries the app's own icon rather than the default PyInstaller one. python versioninfo.py turns APP_VERSION into the resource that fills in the Details tab of the file properties.

The result is dist\MoveYourAss.exe, a single file with no further dependencies. settings.json and log.csv are created in the folder the .exe lives in, so give it a folder of its own. The build and dist folders and the MoveYourAss.spec file can be deleted afterwards.

--hidden-import pystray._win32 is required because pystray picks its backend at runtime; without that flag PyInstaller does not find it and the .exe fails to start.

Tests

python tests/run.py

No framework and no dependencies beyond the ones the app already needs. Each suite is a plain script; run.py runs them in separate processes and prints a summary. The two suites that open windows are skipped when there is no display, so the rest still runs over SSH or in CI.

290 checks, passing on Windows and on Linux.

Platform support

Everything platform specific sits behind sysutil.py, which picks a backend at import: sys_windows.py or sys_linux.py. Both implement the same handful of functions, and anything a platform cannot answer returns a neutral value, so a missing feature degrades the app rather than breaking it.

Feature Windows Linux
Idle detection GetLastInputInfo XScreenSaver, or the GNOME idle monitor over D-Bus
Cursor position GetCursorPos X11; Wayland deliberately does not expose this
Monitor under the cursor MonitorFromPoint Xinerama
Lock and screensaver OpenInputDesktop org.freedesktop.ScreenSaver over D-Bus
Full screen and presentations SHQueryUserNotificationState _NET_WM_STATE, plus idle inhibitors over D-Bus
Autostart registry Run key ~/.config/autostart/moveyourass.desktop
Single instance named mutex flock on a lock file
Notification sound winsound canberra-gtk-play, paplay or pw-play

Under Wayland, cursor position is unavailable by design; the countdown then starts on keyboard input or on the idle monitor rather than on mouse movement. Everything else has a Wayland path.

Idle detection needs more than the libxss1 package: the X server has to carry the MIT-SCREEN-SAVER extension too. Xwayland and WSLg often do not, and there --check says so instead of quietly pretending. Without any idle source the app assumes you are always at your desk, which turns it into a plain interval timer: reminders still arrive, but it no longer notices when you were away.

macOS has no backend yet. The app will start there and run as a plain timer. Adding one means writing sys_darwin.py against the interface documented in sysutil.py and registering it in that same file.

Files

File Contents
main.py Starts the app and wires all parts together
timer.py When a reminder is due: interval, snooze, pauses, working hours, away detection
overlay.py The full-screen reminder
tray.py The system tray icon and its menu
settings_ui.py The settings window
stats_ui.py The statistics window
config.py Reading, validating and saving settings.json
content.py The bundled exercises and picking them at random
i18n.py Translations of the app's own texts
icon.py Draws the icon, and writes icon.ico for the build
versioninfo.py Writes the Windows version resource for the build
tests/ The suites and run.py; no framework required
logbook.py Writing and summarising log.csv
sysutil.py The platform interface: picks a backend and documents the contract
sys_windows.py Windows implementation: ctypes against user32, shell32 and winreg
sys_linux.py Linux implementation: X11 through ctypes, plus D-Bus through gdbus

Version and licence

MoveYourAss 1.01, copyright (c) 2026 PA1DVB.

The version lives in config.py as APP_VERSION and is the single source for the settings window, --version, and the Windows file properties of the built .exe.

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. It is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See LICENSE for the full text.

About

A reminder to get up from your desk on a regular basis. Full-screen reminders from the system tray, with exercises you configure yourself. Windows and Linux.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages