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