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
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