Skip to content

Add screen-time health breaks, release 0.1.5 - #11

Merged
0nahid merged 1 commit into
mainfrom
claude/overlay-caffeine-0mvbaj
Oct 18, 2026
Merged

0nahid merged 1 commit into
mainfrom
claude/overlay-caffeine-0mvbaj

Conversation

@0nahid

@0nahid 0nahid commented Oct 18, 2026

Copy link
Copy Markdown
Member

Requested by Nahid Hassan · project thread

Before: Matinee only reminded you when a focus timer ended, so if you weren't running a timer you could sit at the screen for hours without a break.

After: Matinee tracks continuous screen time in the background and shows the full-screen overlay when a break is due, whether or not a timer is running. "Look away" (every 20 min) shows a one-minute countdown and closes itself; "Drink water" (every 45 min) and "Stand up" (every 60 min) stay until you click Done. Each has an on/off switch, an interval picker and a preview button under "Screen-time breaks" in the menu. Stepping away for a few minutes (3 for eyes, 5 for the others) or the Mac sleeping counts as taking the break. The version goes to 0.1.5 so merging publishes a release.

How: HealthBreakSchedule is a pure struct that adds the time between 30-second polls to each enabled break's count, resets a count when idle time (from CGEventSource.secondsSinceLastEventType, no permission needed) passes that break's threshold, and returns the highest-priority due break while clearing the others due with it. HealthBreaks owns the polling, persists settings, and resets on sleep, display sleep and fast user switching. Reminder gains an optional duration (auto-dismiss with countdown) and an optional action. A health break is skipped if another overlay is already showing.

To test on a Mac: use the eye preview button to see the countdown; set "Look away" to every 10 min and keep using the Mac; then leave it alone for 3+ minutes and check the count starts over.


Generated by Claude Code

Matinee now watches how long you've been at the Mac, independent of the
focus timer, and shows the full-screen overlay when a break is due: look
away for a one-minute countdown (every 20 min), drink water (45 min) and
stand up (60 min). Each can be switched off or set to a different
interval in the menu. Stepping away for a few minutes, or the Mac
sleeping, counts as taking the break.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SxiPF75k29ZLVHYLDSZuFz
@0nahid 0nahid self-assigned this Oct 18, 2026
@0nahid
0nahid merged commit e014cdc into main Oct 18, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants