feat(waybar): show degraded systemd units
This commit is contained in:
parent
00d406514e
commit
c642b599e3
@ -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
|
||||
}
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user