Add module for staged rpm-ostree deployments

This commit is contained in:
Salt 2025-02-08 23:31:38 -06:00
parent 13015b5bcb
commit b26a5435e7
2 changed files with 12 additions and 1 deletions
hyprland/.config/waybar

@ -35,7 +35,7 @@
"margin-bottom": 16,
"margin-left": 16,
"margin-right": 16,
"modules-left": ["gamemode", "custom/flatpak", "custom/backup", "battery", "temperature", "cpu", "memory", "network"],
"modules-left": ["gamemode", "custom/flatpak", "custom/backup", "custom/rpm-ostree-staged", "battery", "temperature", "cpu", "memory", "network"],
"modules-center": [],
"modules-right": ["mpris", "pulseaudio", "backlight", "idle_inhibitor", "clock"],
"clock": {
@ -132,6 +132,13 @@
"custom/backup": {
"interval": 60,
"format": "",
"tooltip-format": "The last backup job failed -- investigate backup.service for more details",
"exec": "systemctl is-failed backup.service"
},
"custom/rpm-ostree-staged": {
"interval": 60,
"format": "",
"tooltip-format": "An rpm-ostree deployment is pending and will be applied upon the next reboot",
"exec": "rpm-ostree status --json | jq -e '.deployments[0].staged'"
}
}]

@ -208,3 +208,7 @@ window#waybar.fullscreen #window {
color: rgba(235, 219, 178, 0.2);
padding: 0 1em;
}
#custom-rpm-ostree-staged {
color: rgba(235, 219, 178, 0.2);
padding: 0 1em;
}