Rework polybar battery module
This commit is contained in:
parent
bd3f24be57
commit
a0a3ead4bb
@ -157,7 +157,7 @@ ramp-foreground = ${color.yellow}
|
|||||||
type = internal/battery
|
type = internal/battery
|
||||||
|
|
||||||
; This is useful in case the battery never reports 100% charge
|
; This is useful in case the battery never reports 100% charge
|
||||||
full-at = 100
|
full-at = 97
|
||||||
|
|
||||||
; Use the following command to list batteries and adapters:
|
; Use the following command to list batteries and adapters:
|
||||||
; $ ls -1 /sys/class/power_supply/
|
; $ ls -1 /sys/class/power_supply/
|
||||||
@ -185,20 +185,24 @@ time-format = %H:%M
|
|||||||
; <bar-capacity>
|
; <bar-capacity>
|
||||||
; <ramp-capacity>
|
; <ramp-capacity>
|
||||||
; <animation-charging>
|
; <animation-charging>
|
||||||
format-charging = <ramp-capacity> <label-charging>
|
format-charging = <label-charging>
|
||||||
format-charging-prefix =
|
format-charging-prefix = " "
|
||||||
|
format-charging-prefix-foreground = ${color.blue}
|
||||||
; Available tags:
|
; Available tags:
|
||||||
; <label-discharging> (default)
|
; <label-discharging> (default)
|
||||||
; <bar-capacity>
|
; <bar-capacity>
|
||||||
; <ramp-capacity>
|
; <ramp-capacity>
|
||||||
; <animation-discharging>
|
; <animation-discharging>
|
||||||
format-discharging = <ramp-capacity> <label-discharging>
|
format-discharging = <ramp-capacity> <label-discharging>
|
||||||
|
format-discharging-foreground = ${color.blue}
|
||||||
|
|
||||||
; Available tags:
|
; Available tags:
|
||||||
; <label-full> (default)
|
; <label-full> (default)
|
||||||
; <bar-capacity>
|
; <bar-capacity>
|
||||||
; <ramp-capacity>
|
; <ramp-capacity>
|
||||||
format-full = <ramp-capacity> <label-full>
|
format-full = <label-full>
|
||||||
|
format-full-prefix = " "
|
||||||
|
format-full-prefix-foreground = ${color.blue}
|
||||||
|
|
||||||
; Available tokens:
|
; Available tokens:
|
||||||
; %percentage% (default)
|
; %percentage% (default)
|
||||||
@ -212,10 +216,11 @@ label-charging = %percentage%%
|
|||||||
; %time%
|
; %time%
|
||||||
; %consumption% (shows current discharge rate in watts)
|
; %consumption% (shows current discharge rate in watts)
|
||||||
label-discharging = %percentage%%
|
label-discharging = %percentage%%
|
||||||
|
label-discharging-foreground = ${color.white}
|
||||||
|
|
||||||
; Available tokens:
|
; Available tokens:
|
||||||
; %percentage% (default)
|
; %percentage% (default)
|
||||||
label-full =
|
label-full = %percentage%%
|
||||||
|
|
||||||
; Only applies if <ramp-capacity> is used
|
; Only applies if <ramp-capacity> is used
|
||||||
ramp-capacity-0 =
|
ramp-capacity-0 =
|
||||||
|
Loading…
Reference in New Issue
Block a user