diff options
| author | Danilo M. <danix@danix.xyz> | 2026-09-18 18:20:27 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-09-18 18:20:27 +0200 |
| commit | 37cabe2fea2f86d481516aae6ddaeb14bac2e64f (patch) | |
| tree | 1249429fa55c501f5b6fa74823ce6eba8130ea88 /bin/cache-sample.sh | |
| parent | 46d5607764fb29ae5dbbe001519571f934379917 (diff) | |
| download | conky-theme-udt-37cabe2fea2f86d481516aae6ddaeb14bac2e64f.tar.gz conky-theme-udt-37cabe2fea2f86d481516aae6ddaeb14bac2e64f.zip | |
feat: add a breaktimer card
Replaces the Waybar module that used to show breaktimer.sh with a card
on the dashboard. The card's big value is the phase countdown, coloured
by phase with the same language the Waybar module used, and two rows
name the phase and what the countdown leads to.
Data comes from bin/breaktimer-sample.sh, run by conky at execi 5, which
reads the daemon's runtime files into a cache. The sampler owns the
kill -0 liveness check, because conky's Lua cannot run a process and a
dead daemon must read as 'fermo' rather than a stale 'running'.
Drops outside the work-hours window freeze the countdown while the phase
stays 'working'. The sampler detects this from the remain file's age and
the card reads it as 'outside working hours', which also covers a hung
daemon. The phase words and colour roles live in data.breaktimer_parse
so they are unit-tested; the card only draws the result.
Diffstat (limited to 'bin/cache-sample.sh')
0 files changed, 0 insertions, 0 deletions
