From b1eb8798f8a1587df817e13f8df0e3404e3cd3e2 Mon Sep 17 00:00:00 2001 From: Salt Date: Mon, 18 Jan 2021 20:53:32 -0600 Subject: [PATCH] Polybar: Only show indicators for failed ansible-pull and backup --- .config/polybar/config | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.config/polybar/config b/.config/polybar/config index cb81ef82..1843f25a 100644 --- a/.config/polybar/config +++ b/.config/polybar/config @@ -242,15 +242,15 @@ format-foreground = ${res/colors.yellow} type = custom/script interval = 5 exec = "echo " -exec-if = "systemctl is-active --quiet ansible-pull.service" -format-foreground = ${res/colors.yellow} +exec-if = "systemctl is-failed --quiet ansible-pull.service" +format-foreground = ${res/colors.red} [module/service-backup] type = custom/script interval = 5 exec = "echo " -exec-if = "systemctl is-active --quiet backup.service" -format-foreground = ${res/colors.yellow} +exec-if = "systemctl is-failed --quiet backup.service" +format-foreground = ${res/colors.red} [module/wlan-laptop] type = internal/network