From 0250e8a666c4cbcce3c2789ba02cb3b1f290c9d0 Mon Sep 17 00:00:00 2001 From: Jacob Babor Date: Fri, 3 May 2024 18:45:52 -0500 Subject: [PATCH] Add waybar module to check for failed backups --- sericea/.config/waybar/config | 7 ++++++- sericea/.config/waybar/style.css | 5 +++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/sericea/.config/waybar/config b/sericea/.config/waybar/config index 4998dfaa..366d5991 100644 --- a/sericea/.config/waybar/config +++ b/sericea/.config/waybar/config @@ -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" } }] diff --git a/sericea/.config/waybar/style.css b/sericea/.config/waybar/style.css index 25c8da8e..428e7130 100644 --- a/sericea/.config/waybar/style.css +++ b/sericea/.config/waybar/style.css @@ -143,3 +143,8 @@ window#waybar { color: #ebdbb2; padding: 0 1em; } +/* Custom modules */ +#custom-backup { + color: #fb4934; + padding: 0 1em; +}