diff options
| author | 2026-05-13 13:43:36 +0100 | |
|---|---|---|
| committer | 2026-05-13 13:43:36 +0100 | |
| commit | f685f20f7a41e6b5c4d56e46a9c8fba7c3287a68 (patch) | |
| tree | da7f69096b8548a27d1b19df921c53e542996e6b /dot_config/waybar/config.jsonc | |
| parent | aba0bd84ac3b92d45f55b03692814e496358fe25 (diff) | |
| download | dotfiles-f685f20f7a41e6b5c4d56e46a9c8fba7c3287a68.tar.gz dotfiles-f685f20f7a41e6b5c4d56e46a9c8fba7c3287a68.tar.bz2 dotfiles-f685f20f7a41e6b5c4d56e46a9c8fba7c3287a68.zip | |
feat(waybar,systemd-units): wire up new system-health modules and timers
Bar layout: insert the four new modules between custom/update and
custom/thunderbird so that all 'something needs your attention'
indicators live as a contiguous group on the right side, in roughly
escalating actionability:
custom/notifications -- mako history (always present, gray baseline)
custom/update -- '`just update` was N hours/days ago'
custom/pacdiff -- '.pacnew/.pacsave waiting'
custom/arch-audit -- 'fixable CVE in installed package'
custom/failed-units -- 'systemd unit failed'
custom/lostfiles -- 'unowned files under tracked dirs'
custom/thunderbird -- 'unread mail'
Click handlers all use the floating-ghostty + 'press enter to close'
idiom established by the existing update module so output stays
inspectable. arch-audit and lostfiles open their /run report in
`nvim -R` (read-only) since the source of truth lives in those files.
style.css: extend the shared 6px-padding selector list, the .fresh
zero-padding rule (so empty-state modules disappear cleanly), and add
.warn/.critical color rules consistent with the rest of the palette
(yellow #fabd2f for 'review when convenient', red #fb4934 for 'review
soon').
systemd-units/system.txt: enable the three new system timers
- btrfs-balance@-.timer (monthly partial balance on /)
- arch-audit.timer (daily CVE report refresh)
- lostfiles.timer (weekly unowned-files report refresh)
Picked up automatically on the next `just unit-apply`.
Diffstat (limited to 'dot_config/waybar/config.jsonc')
| -rw-r--r-- | dot_config/waybar/config.jsonc | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/dot_config/waybar/config.jsonc b/dot_config/waybar/config.jsonc index a6614f9..12d1255 100644 --- a/dot_config/waybar/config.jsonc +++ b/dot_config/waybar/config.jsonc @@ -21,6 +21,10 @@ "idle_inhibitor", "custom/notifications", "custom/update", + "custom/pacdiff", + "custom/arch-audit", + "custom/failed-units", + "custom/lostfiles", "custom/thunderbird", "clock", "tray", @@ -219,6 +223,38 @@ "tooltip": true, }, + "custom/pacdiff": { + "exec": "~/.config/waybar/pacdiff-status.sh", + "return-type": "json", + "interval": 300, + "on-click": "ghostty --class=floating -e sh -c 'sudo DIFFPROG=\"nvim -d\" pacdiff; printf \"\\n[done — press enter] \"; read _'", + "tooltip": true, + }, + + "custom/failed-units": { + "exec": "~/.config/waybar/failed-units-status.sh", + "return-type": "json", + "interval": 30, + "on-click": "ghostty --class=floating -e sh -c 'echo \"=== system ===\"; systemctl --failed; echo; echo \"=== user ===\"; systemctl --user --failed; printf \"\\n[done — press enter] \"; read _'", + "tooltip": true, + }, + + "custom/arch-audit": { + "exec": "~/.config/waybar/arch-audit-status.sh", + "return-type": "json", + "interval": 300, + "on-click": "ghostty --class=floating -e nvim -R /run/arch-audit.txt", + "tooltip": true, + }, + + "custom/lostfiles": { + "exec": "~/.config/waybar/lostfiles-status.sh", + "return-type": "json", + "interval": 600, + "on-click": "ghostty --class=floating -e nvim -R /run/lostfiles.txt", + "tooltip": true, + }, + "custom/thunderbird": { "exec": "~/.config/waybar/tb-unread.sh", "return-type": "json", |
