Every 25 minutes a fullscreen break screen (one per monitor) guides you through eye exercises and then a walk. You can snooze it for 2 minutes or skip it. A scratchpad, focused as soon as the break starts, records what you were in the middle of and shows it back when the break ends. - Python + GTK 4 + libadwaita, runs in the background as a GApplication - CLI: now, snooze, skip, off/on, status, notes, stats, config, quit - Idle and suspend detection through Mutter's IdleMonitor - Warning notification with Snooze / Take it now buttons - install.sh for a per-user install with autostart and an app-grid entry - Unit tests for the scheduler, notes and exercise plan Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AVT21e1qRMx6WM5n8eoLNA
81 lines
3.2 KiB
Markdown
81 lines
3.2 KiB
Markdown
# Pause
|
|
|
|
Every 25 minutes Pause fills the screen and walks you through a short break:
|
|
a few guided eye exercises, then a couple of minutes to get up and move.
|
|
You can snooze the break for 2 minutes or skip it. There's also a scratchpad
|
|
where you can write down what you were in the middle of. It gets focus as
|
|
soon as the break starts, so you can just type, and it's shown back to you
|
|
when the break ends.
|
|
|
|
Built for GNOME on Fedora (tested with GNOME Shell 50 on Wayland) with
|
|
Python, GTK 4 and libadwaita, all of which Fedora Workstation already ships.
|
|
|
|
## Install
|
|
|
|
```sh
|
|
git clone ssh://git@git.reudy.net:14922/reudy-net/pause.git ~/src/pause
|
|
~/src/pause/install.sh
|
|
pause &
|
|
```
|
|
|
|
`install.sh` doesn't need root. It adds:
|
|
|
|
- `~/.local/bin/pause`, a launcher that runs from the checkout, so `git pull` updates it
|
|
- an app-grid entry (open it to see the time left; right-click for *Take a Break Now* / *Turn Off for an Hour*)
|
|
- an autostart entry, so Pause starts when you log in
|
|
|
|
If it complains about missing modules: `sudo dnf install python3-gobject gtk4 libadwaita`.
|
|
Remove it with `./install.sh --uninstall` (your notes are kept).
|
|
|
|
## The break
|
|
|
|
1. A notification a minute before (**Snooze** / **Take it now**).
|
|
2. A fullscreen screen on every monitor with a countdown. The cursor is already in the scratchpad.
|
|
3. Eye exercises (look into the distance, blinking, near/far focus, eye circles,
|
|
figure eight, palming), with a chime between steps.
|
|
4. The rest of the break is for walking around. A chime tells you it's over.
|
|
5. **Welcome back** shows your note again. **Back to work** (or Ctrl+Enter)
|
|
saves it to `~/.local/share/pause/notes.md` and leaves it in the notification list.
|
|
|
|
**Snooze** keeps your note as a draft for next time. **Skip** saves the note
|
|
and restarts the 25 minutes. Alt+F4 and Escape don't close the break screen.
|
|
If you Alt+Tab away, the break screen comes back after a few seconds.
|
|
|
|
Pause also notices when you're not there. If the laptop sleeps, or you don't
|
|
touch it for 5 minutes, that counts as a break and the timer starts over. A
|
|
break that comes due while you're away waits until you're back.
|
|
|
|
## Commands
|
|
|
|
```
|
|
pause start (or show status if already running)
|
|
pause now break right now
|
|
pause snooze [MIN] postpone the next break
|
|
pause skip skip the next break
|
|
pause off [MIN] no breaks, for MIN minutes or until `pause on`
|
|
pause on
|
|
pause status
|
|
pause notes [N] your last N scratchpad notes
|
|
pause stats breaks taken / snoozed / skipped this week
|
|
pause config create ~/.config/pause/config.toml and print its path
|
|
pause quit
|
|
```
|
|
|
|
Tip: bind `pause now` or `pause off 60` to a key in *Settings → Keyboard →
|
|
Custom Shortcuts*.
|
|
|
|
## Configuration
|
|
|
|
`pause config` creates `~/.config/pause/config.toml` with every setting documented:
|
|
work/break/snooze length, warning time, idle reset, whether the break screen
|
|
pulls itself back to the front, and sounds. Restart Pause after editing it.
|
|
|
|
## Development
|
|
|
|
```sh
|
|
python3 -m unittest # scheduler, notes and exercise-plan tests
|
|
python3 -m pause # run from the checkout
|
|
```
|
|
|
|
The timing logic lives in `pause/scheduler.py` and has no GTK dependency, so
|
|
it can be tested with a fake clock. The break screen is in `pause/overlay.py`.
|