diff options
| -rw-r--r-- | dot_config/waybar/config.jsonc | 36 | ||||
| -rw-r--r-- | dot_config/waybar/style.css | 26 | ||||
| -rw-r--r-- | systemd-units/system.txt | 3 |
3 files changed, 64 insertions, 1 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", diff --git a/dot_config/waybar/style.css b/dot_config/waybar/style.css index cb4dd86..fe2f3bb 100644 --- a/dot_config/waybar/style.css +++ b/dot_config/waybar/style.css @@ -61,11 +61,19 @@ window#waybar { #custom-dock, #custom-notifications, #custom-update, +#custom-pacdiff, +#custom-failed-units, +#custom-arch-audit, +#custom-lostfiles, #custom-thunderbird { padding: 0 6px; } -#custom-update.fresh { +#custom-update.fresh, +#custom-pacdiff.fresh, +#custom-failed-units.fresh, +#custom-arch-audit.fresh, +#custom-lostfiles.fresh { padding: 0; } @@ -77,6 +85,22 @@ window#waybar { color: #fb4934; /* red — stale ≥ 7d */ } +#custom-pacdiff.warn { + color: #fabd2f; /* yellow — .pacnew/.pacsave waiting */ +} + +#custom-failed-units.critical { + color: #fb4934; /* red — at least one failed unit */ +} + +#custom-arch-audit.critical { + color: #fb4934; /* red — fixable CVEs in installed packages */ +} + +#custom-lostfiles.warn { + color: #fabd2f; /* yellow — unowned files under tracked dirs */ +} + #cpu { color: #83a598; /* blue */ } diff --git a/systemd-units/system.txt b/systemd-units/system.txt index 5d1d936..154ce4c 100644 --- a/systemd-units/system.txt +++ b/systemd-units/system.txt @@ -17,7 +17,10 @@ tlp.service pcscd.socket smartd.service btrfs-scrub@-.timer +btrfs-balance@-.timer fwupd-refresh.timer +arch-audit.timer +lostfiles.timer # --- bluetooth --- bluetooth.service |
