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 /conky.conf.in | |
| 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 'conky.conf.in')
| -rw-r--r-- | conky.conf.in | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/conky.conf.in b/conky.conf.in index 44caf4e..0d88ab6 100644 --- a/conky.conf.in +++ b/conky.conf.in @@ -51,5 +51,6 @@ conky.config = { -- fires on schedule: verified with a probe config whose only text was an execi -- producing no output. This is what runs the weather, disks and cache -- samplers, and tying it to conky means nothing fetches while the dashboard is --- down. -conky.text = [[${execi 900 ~/.config/conky/bin/weather-fetch.sh}${execi 60 ~/.config/conky/bin/disks-sample.sh}${execi 900 ~/.config/conky/bin/cache-sample.sh}${execi 1800 ~/.config/conky/bin/pubip-sample.sh}${execi 900 ~/.config/conky/bin/slackware-sample.sh}${execi 300 ~/.config/conky/bin/calendar-sample.sh}]] +-- down. breaktimer runs at 5s, its daemon's own tick, so the countdown advances +-- in the steps the daemon counts in. +conky.text = [[${execi 900 ~/.config/conky/bin/weather-fetch.sh}${execi 60 ~/.config/conky/bin/disks-sample.sh}${execi 900 ~/.config/conky/bin/cache-sample.sh}${execi 1800 ~/.config/conky/bin/pubip-sample.sh}${execi 900 ~/.config/conky/bin/slackware-sample.sh}${execi 300 ~/.config/conky/bin/calendar-sample.sh}${execi 5 ~/.config/conky/bin/breaktimer-sample.sh}]] |
