From 5449b5bb9dffb63186c2f3a99e7214eb4434eb1b Mon Sep 17 00:00:00 2001 From: eoli3n Date: Mon, 21 Jun 2021 08:09:28 +0200 Subject: [PATCH] updated waybar to check backup disabled --- roles/waybar/files/waybar/config | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/roles/waybar/files/waybar/config b/roles/waybar/files/waybar/config index 3a3aac6..46775c2 100644 --- a/roles/waybar/files/waybar/config +++ b/roles/waybar/files/waybar/config @@ -100,10 +100,9 @@ "exec": "~/.config/waybar/modules/storage.sh /" }, "custom/backup": { - "format": " backup...", + "format": " {}", "interval": 5, - "exec": "echo a", - "exec-if": "pgrep borg >/dev/null" + "exec": "if test -f /etc/borgmatic/lock; then echo 'backup disabled'; elif pgrep borg >/dev/null; then echo 'backup...'; fi" }, "custom/systemd": { "format": " {}",