aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/etc
diff options
context:
space:
mode:
authorLibravatar sommerfeld <sommerfeld@sommerfeld.dev>2026-05-13 13:43:35 +0100
committerLibravatar sommerfeld <sommerfeld@sommerfeld.dev>2026-05-13 13:43:35 +0100
commitaba0bd84ac3b92d45f55b03692814e496358fe25 (patch)
treebecb1b13e2f6c29bfb832a78158904202c783111 /etc
parent54eacef87b906835f9778d9c4b02128398bf88d0 (diff)
downloaddotfiles-aba0bd84ac3b92d45f55b03692814e496358fe25.tar.gz
dotfiles-aba0bd84ac3b92d45f55b03692814e496358fe25.tar.bz2
dotfiles-aba0bd84ac3b92d45f55b03692814e496358fe25.zip
feat(waybar): pacdiff + failed-units reminders
Two live waybar modules — no timer/state-file pipeline because the inputs are cheap to compute on every poll: custom/pacdiff (interval 300s) Counts unresolved .pacnew / .pacsave files via `pacdiff -o` (output mode — lists only, takes no action). Hidden at zero. Yellow 'pacdiff N' otherwise. Mako fires once on the 0→N transition, so you get exactly one nudge per upgrade wave, not a sustained re-nag for files you've decided to defer. Click runs `sudo DIFFPROG='nvim -d' pacdiff` in a floating ghostty. custom/failed-units (interval 30s) Sums `systemctl --failed` (system) and `systemctl --user --failed` counts. Hidden at zero. Red 'failed N' otherwise. Mako fires only on upward transition (count went up since last poll), so already-known failures don't keep paging you while you investigate. Click prints both `systemctl --failed` outputs in a floating ghostty. Both modules use the same $XDG_RUNTIME_DIR/waybar-X-prev pattern as the update reminder for state, which makes 'reboot resets the nag' the default behaviour — exactly the right semantics for both: a fresh boot deserves a fresh look at pending pacdiffs and any failed units.
Diffstat (limited to 'etc')
0 files changed, 0 insertions, 0 deletions