Polybar: Only show indicators for failed ansible-pull and backup

This commit is contained in:
Salt 2021-01-18 20:53:32 -06:00
parent e710f068b2
commit b1eb8798f8

View File

@ -242,15 +242,15 @@ format-foreground = ${res/colors.yellow}
type = custom/script type = custom/script
interval = 5 interval = 5
exec = "echo " exec = "echo "
exec-if = "systemctl is-active --quiet ansible-pull.service" exec-if = "systemctl is-failed --quiet ansible-pull.service"
format-foreground = ${res/colors.yellow} format-foreground = ${res/colors.red}
[module/service-backup] [module/service-backup]
type = custom/script type = custom/script
interval = 5 interval = 5
exec = "echo " exec = "echo "
exec-if = "systemctl is-active --quiet backup.service" exec-if = "systemctl is-failed --quiet backup.service"
format-foreground = ${res/colors.yellow} format-foreground = ${res/colors.red}
[module/wlan-laptop] [module/wlan-laptop]
type = internal/network type = internal/network