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

View File

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