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

View File

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