Make Polybar a bit more energy-efficient
This commit is contained in:
parent
561ec9d4eb
commit
b01f43751a
@ -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}
|
||||||
|
Loading…
Reference in New Issue
Block a user