aboutsummaryrefslogtreecommitdiffstats
path: root/breaktimer.sh
AgeCommit message (Collapse)AuthorFilesLines
2026-09-18docs: correct comments to match measured behaviorHEADmasterDanilo M.1-7/+8
The config comment called a syntax error the loudest possible failure; measured, it is reported on stderr but the script carries on with the defaults, so point at breaktimer.sh config to confirm what took effect. List config in the usage line, and include stopped in the state and phase domain comments, which omitted it.
2026-09-18feat: add a config verb printing effective settingsDanilo M.1-1/+11
Durations were unobservable at runtime: status reports phase and seconds left, not the configuration those came from, so 'did my config take effect' could only be answered by reading the script. It also gives the config test something to assert against without running a thirty minute work block.
2026-09-18feat: read overrides from breaktimer.confDanilo M.1-0/+8
Every tunable was a variable in a tracked script, so a personal value could only live as an uncommittable edit. The repository copy and the installed copy had already drifted over three sound paths pointing into a home directory, which is the argument in one line. Bash sources files natively: no format, no parser, and a syntax error is a bash error at start rather than a silent fallback to a default.
2026-06-29Fix duplicate daemon spawn on login via atomic PID claimDanilo M.1-7/+12
Replace the check-then-write singleton guard in run_loop with an atomic noclobber PID-file claim. The old guard read the PID file then wrote it in two steps; two starts racing (e.g. a fast double-login) could both read a stale PID and spawn duplicate daemons. With noclobber only the first writer creates the file; the loser aborts, and a stale PID from a previous session is taken over rather than duplicated. Also document install (~/bin copy) and autostart in CLAUDE.md. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-23Add GPLv2 license and per-script noticesDanilo M.1-0/+14
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-23Initial commit: breaktimer break-reminder daemon with Waybar moduleDanilo M.1-0/+234
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>