feat(waybar): show degraded systemd units

This commit is contained in:
Price Hiller 2024-02-13 09:29:20 -06:00
parent 00d406514e
commit c642b599e3
Signed by: Price
GPG Key ID: C3FADDE7A8534BEB
2 changed files with 18 additions and 1 deletions

View File

@ -20,6 +20,7 @@
], ],
"modules-right": [ "modules-right": [
"custom/pacman-update", "custom/pacman-update",
"systemd-failed-units",
"tray", "tray",
"backlight", "backlight",
"network", "network",
@ -106,7 +107,8 @@
}, },
"backlight": { "backlight": {
"format": "󰃠 {percent}%", "format": "󰃠 {percent}%",
"scroll-step": 5.0 "scroll-step": 5.0,
"device": "intel_backlight"
}, },
"network": { "network": {
"on-click-right": "~/.config/waybar/scripts/set-rfkill.bash", "on-click-right": "~/.config/waybar/scripts/set-rfkill.bash",
@ -225,6 +227,11 @@
"firefoxdeveloperedition": "firefox-developer-edition" "firefoxdeveloperedition": "firefox-developer-edition"
} }
}, },
"systemd-failed-units": {
"format": "✗ Degraded Units: {nr_failed}",
"system": true,
"user": true
},
"tray": { "tray": {
"icon-size": 14 "icon-size": 14
} }

View File

@ -72,6 +72,7 @@ tooltip label,
#taskbar, #taskbar,
#tray, #tray,
#backlight, #backlight,
#systemd-failed-units,
#tray menu, #tray menu,
#custom-lock { #custom-lock {
background-color: #16161d; background-color: #16161d;
@ -268,6 +269,15 @@ tooltip {
color: #7e9cd8; color: #7e9cd8;
} }
#systemd-failed-units.ok {
color: #98BB6C;
}
#systemd-failed-units.degraded {
color: #FF5D62;
font-weight: bolder;
}
/* Tray */ /* Tray */
#tray { #tray {
-gtk-icon-shadow: 0 0 2px #957fb8; -gtk-icon-shadow: 0 0 2px #957fb8;