diff options
| author | Danilo M. <danix@danix.xyz> | 2026-06-29 11:11:42 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-06-29 11:11:42 +0200 |
| commit | f32084dad7d0b9773cd5234b30a21b013e789f34 (patch) | |
| tree | b7cc2fe254e68317442f5485dca49218040f91d0 | |
| parent | 12528dccd3a1c7043fb14343c0830345f5015fbf (diff) | |
| download | breaktimer-master.tar.gz breaktimer-master.zip | |
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
| -rw-r--r-- | README.md | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -71,7 +71,10 @@ breaktimer.sh status # print state, phase, seconds remaining refuse if a daemon is already running.) Auto-start on login by adding `breaktimer.sh start` to your compositor's -autostart (e.g. Hyprland `exec-once`, Sway `exec`). +autostart (e.g. Hyprland `exec-once`, Sway `exec`). `start` is idempotent: +`run_loop` claims the PID file atomically (`noclobber`), so a second `start` — +or a fast double-login — can't spawn a duplicate daemon; the loser aborts and a +stale PID file from a previous session is taken over, not duplicated. ## Configuration |
