Add waybar module to check for failed backups

This commit is contained in:
Salt 2024-05-03 18:45:52 -05:00
parent 07ace6160d
commit 0250e8a666
2 changed files with 11 additions and 1 deletions

View File

@ -33,7 +33,7 @@
"layer": "top",
"position": "bottom",
"height": 40,
"modules-left": ["idle_inhibitor", "gamemode", "cpu", "memory", "battery", "mpris"],
"modules-left": ["idle_inhibitor", "gamemode", "cpu", "memory", "custom/backup", "battery", "mpris"],
"modules-center": [],
"modules-right": ["network", "pulseaudio", "backlight", "clock"],
"clock": {
@ -120,5 +120,10 @@
"paused": "⏸",
"stopped": "⏹"
}
},
"custom/backup": {
"interval": 60,
"format": "",
"exec": "systemctl is-failed backup.service"
}
}]

View File

@ -143,3 +143,8 @@ window#waybar {
color: #ebdbb2;
padding: 0 1em;
}
/* Custom modules */
#custom-backup {
color: #fb4934;
padding: 0 1em;
}