Make Polybar a bit more energy-efficient

This commit is contained in:
Salt 2022-01-24 11:12:04 -06:00
parent 561ec9d4eb
commit b01f43751a
1 changed files with 4 additions and 3 deletions

View File

@ -98,7 +98,7 @@ bar-indicator = ${res/config.bar-indicator}
type = internal/battery
full-at = 100
time-format = %H:%M
interval = 15
interval = 60
format-charging = <ramp-capacity> <label-charging>
format-charging-foreground = ${res/colors.green}
@ -254,20 +254,21 @@ format-muted-foreground = ${res/colors.border}
[module/reboot-required]
type = custom/script
interval = 300
exec = "echo Reboot required"
exec-if = "[ -f /var/run/reboot-required ]"
format-foreground = ${res/colors.yellow}
[module/service-ansible]
type = custom/script
interval = 5
interval = 300
exec = "echo "
exec-if = "systemctl is-failed --quiet ansible-pull.service"
format-foreground = ${res/colors.red}
[module/service-backup]
type = custom/script
interval = 5
interval = 300
exec = "echo "
exec-if = "systemctl is-failed --quiet backup.service"
format-foreground = ${res/colors.red}