Polybar: Add service indicators for Ansible and backup jobs
This commit is contained in:
parent
67c1f5cc93
commit
832c52157d
@ -65,7 +65,7 @@ monitor = ${env:PB_MONITOR:eDP-1}
|
|||||||
inherit = template/bar
|
inherit = template/bar
|
||||||
border-top-size = ${res/config.border-size}
|
border-top-size = ${res/config.border-size}
|
||||||
tray-position = center
|
tray-position = center
|
||||||
modules-left = i3 bspwm reboot-required
|
modules-left = i3 bspwm service-ansible service-backup reboot-required
|
||||||
modules-right = backlight pulse battery | date
|
modules-right = backlight pulse battery | date
|
||||||
|
|
||||||
#[bar/primary-2]
|
#[bar/primary-2]
|
||||||
@ -246,6 +246,20 @@ exec = "echo Reboot required"
|
|||||||
exec-if = "[ -f /var/run/reboot-required ]"
|
exec-if = "[ -f /var/run/reboot-required ]"
|
||||||
format-foreground = ${res/colors.yellow}
|
format-foreground = ${res/colors.yellow}
|
||||||
|
|
||||||
|
[module/service-ansible]
|
||||||
|
type = custom/script
|
||||||
|
interval = 5
|
||||||
|
exec = "echo "
|
||||||
|
exec-if = "systemctl is-active --quiet ansible-pull.service"
|
||||||
|
format-foreground = ${res/colors.yellow}
|
||||||
|
|
||||||
|
[module/service-backup]
|
||||||
|
type = custom/script
|
||||||
|
interval = 5
|
||||||
|
exec = "echo "
|
||||||
|
exec-if = "systemctl is-active --quiet 9iron-backup.service"
|
||||||
|
format-foreground = ${res/colors.yellow}
|
||||||
|
|
||||||
[module/wlan-laptop]
|
[module/wlan-laptop]
|
||||||
type = internal/network
|
type = internal/network
|
||||||
interface = wlp0s20f3
|
interface = wlp0s20f3
|
||||||
|
Loading…
Reference in New Issue
Block a user