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