From 70bf67d2e33d5597e4c6086ed9bbc2546bba44d7 Mon Sep 17 00:00:00 2001 From: eoli3n Date: Fri, 18 Dec 2020 16:02:29 +0100 Subject: [PATCH] changed waybar tests --- roles/waybar/files/waybar/config | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/roles/waybar/files/waybar/config b/roles/waybar/files/waybar/config index 086cda4..a0a113f 100644 --- a/roles/waybar/files/waybar/config +++ b/roles/waybar/files/waybar/config @@ -60,7 +60,7 @@ "format": " vpn", "interval": 5, "exec" : "echo a", - "exec-if" : "systemctl is-active --quiet vpn" + "exec-if" : "pregrep openvpn &>/dev/null" }, "backlight": { "format": "{icon} {percent}%", @@ -98,23 +98,11 @@ "interval": 60, "exec": "~/.config/waybar/modules/storage.sh /" }, - "custom/zfs-trim": { - "format": " trimming...", - "interval": 5, - "exec": "echo a", - "exec-if": "systemctl is-active --quiet zfs-trim" - }, - "custom/zfs-scrub": { - "format": " scrubbing...", - "interval": 5, - "exec": "echo a", - "exec-if": "systemctl is-active --quiet zfs-scrub" - }, "custom/backup": { "format": " backup...", "interval": 5, "exec": "echo a", - "exec-if": "systemctl is-active --quiet backup" + "exec-if": "pgrep borg &>/dev/null" }, "custom/systemd": { "format": " {}",