aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-06-29 11:11:42 +0200
committerDanilo M. <danix@danix.xyz>2026-06-29 11:11:42 +0200
commitf32084dad7d0b9773cd5234b30a21b013e789f34 (patch)
treeb7cc2fe254e68317442f5485dca49218040f91d0 /README.md
parent12528dccd3a1c7043fb14343c0830345f5015fbf (diff)
downloadbreaktimer-f32084dad7d0b9773cd5234b30a21b013e789f34.tar.gz
breaktimer-f32084dad7d0b9773cd5234b30a21b013e789f34.zip
Document idempotent start (noclobber PID claim) in READMEHEADmaster
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Diffstat (limited to 'README.md')
-rw-r--r--README.md5
1 files changed, 4 insertions, 1 deletions
diff --git a/README.md b/README.md
index f62c96d..75b92b1 100644
--- a/README.md
+++ b/README.md
@@ -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