Add Pause: break reminder with eye exercises and scratchpad #1

Merged
reudy merged 1 commit from initial-app into main 2026-09-28 16:24:35 +02:00
Member

Adds Pause, a GNOME break reminder for Fedora (Python + GTK 4 + libadwaita).

What it does

  • Every 25 min: a warning notification a minute before (Snooze / Take it now), then a fullscreen break screen on every monitor
  • The break walks you through 6 eye exercises (distance focus, blinking, near/far, circles, figure-8, palming) with a chime between steps, then the rest of the 5 min is for walking around
  • Snooze 2 min and Skip this break buttons. Alt+F4 and Escape don't close it, and if you Alt+Tab away the screen comes back after ~4 s
  • Scratchpad: the cursor is already in it when the break starts. The note is shown again on the "Welcome back" screen, saved to ~/.local/share/pause/notes.md, and left in the notification list. A snoozed note is kept as a draft
  • Idle/suspend detection (Mutter IdleMonitor + CLOCK_BOOTTIME): 5 min away counts as a break and restarts the timer, and a break that comes due while you're away waits until you're back
  • CLI: pause now | snooze [min] | skip | off [min] | on | status | notes | stats | config | quit
  • install.sh: per-user install (launcher in ~/.local/bin, app-grid entry with quick actions, autostart), --uninstall to remove it
  • Settings in ~/.config/pause/config.toml

Testing

  • python3 -m unittest: 20 tests covering the scheduler (warn/break/snooze/skip/idle/suspend/off), notes, config and the exercise plan
  • Ran end to end in a headless GNOME Shell 50 Wayland session (the same version as Fedora 44), installed via install.sh: warning notification, break screen, snooze, skip, welcome-back note, notes/stats, two monitors, Alt+F4 ignored, Alt+Tab recovered in ~4 s
  • Not tested on real hardware: real clicks/typing (simulated through the CLI), sound, touchscreen

Note on the base branch

The repo was empty, so main was created from an empty root commit to give this PR a base. The repo's default branch is currently initial-app; switch it to main in Settings → Branches after merging.

🤖 Generated with Claude Code

https://claude.ai/code/session_01AVT21e1qRMx6WM5n8eoLNA

Adds **Pause**, a GNOME break reminder for Fedora (Python + GTK 4 + libadwaita). ## What it does - Every 25 min: a warning notification a minute before (**Snooze** / **Take it now**), then a fullscreen break screen on every monitor - The break walks you through 6 eye exercises (distance focus, blinking, near/far, circles, figure-8, palming) with a chime between steps, then the rest of the 5 min is for walking around - **Snooze 2 min** and **Skip this break** buttons. Alt+F4 and Escape don't close it, and if you Alt+Tab away the screen comes back after ~4 s - **Scratchpad**: the cursor is already in it when the break starts. The note is shown again on the "Welcome back" screen, saved to `~/.local/share/pause/notes.md`, and left in the notification list. A snoozed note is kept as a draft - Idle/suspend detection (Mutter IdleMonitor + CLOCK_BOOTTIME): 5 min away counts as a break and restarts the timer, and a break that comes due while you're away waits until you're back - CLI: `pause now | snooze [min] | skip | off [min] | on | status | notes | stats | config | quit` - `install.sh`: per-user install (launcher in `~/.local/bin`, app-grid entry with quick actions, autostart), `--uninstall` to remove it - Settings in `~/.config/pause/config.toml` ## Testing - `python3 -m unittest`: 20 tests covering the scheduler (warn/break/snooze/skip/idle/suspend/off), notes, config and the exercise plan - Ran end to end in a headless **GNOME Shell 50 Wayland** session (the same version as Fedora 44), installed via `install.sh`: warning notification, break screen, snooze, skip, welcome-back note, `notes`/`stats`, two monitors, Alt+F4 ignored, Alt+Tab recovered in ~4 s - Not tested on real hardware: real clicks/typing (simulated through the CLI), sound, touchscreen ## Note on the base branch The repo was empty, so `main` was created from an empty root commit to give this PR a base. The repo's default branch is currently `initial-app`; switch it to `main` in Settings → Branches after merging. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01AVT21e1qRMx6WM5n8eoLNA
agent added 1 commit 2026-09-28 16:24:15 +02:00
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
reudy merged commit e94a46378e into main 2026-09-28 16:24:35 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: reudy-net/pause#1
No description provided.