Polybar: Refactor battery module, show capacity while charging
This commit is contained in:
parent
293d99a43f
commit
0debbd37b1
@ -224,8 +224,10 @@ label-empty-background = ${res/colors.background}
|
|||||||
|
|
||||||
[module/battery]
|
[module/battery]
|
||||||
type = internal/battery
|
type = internal/battery
|
||||||
format-charging = <animation-charging>
|
format-charging = <ramp-capacity>
|
||||||
|
format-charging-background = ${res/colors.background-4}
|
||||||
format-discharging = <ramp-capacity><label-discharging>
|
format-discharging = <ramp-capacity><label-discharging>
|
||||||
|
format-discharging-background = ${res/colors.icon-battery}
|
||||||
format-full = <label-full>
|
format-full = <label-full>
|
||||||
format-full-prefix =
|
format-full-prefix =
|
||||||
format-full-prefix-padding = ${res/config.padding}
|
format-full-prefix-padding = ${res/config.padding}
|
||||||
@ -257,7 +259,6 @@ ramp-capacity-7=
|
|||||||
ramp-capacity-8=
|
ramp-capacity-8=
|
||||||
ramp-capacity-padding = ${res/config.padding}
|
ramp-capacity-padding = ${res/config.padding}
|
||||||
ramp-capacity-foreground = ${res/colors.background}
|
ramp-capacity-foreground = ${res/colors.background}
|
||||||
ramp-capacity-background = ${res/colors.icon-battery}
|
|
||||||
|
|
||||||
animation-charging-0 = ${self.ramp-capacity-0}
|
animation-charging-0 = ${self.ramp-capacity-0}
|
||||||
animation-charging-1 = ${self.ramp-capacity-1}
|
animation-charging-1 = ${self.ramp-capacity-1}
|
||||||
|
Loading…
Reference in New Issue
Block a user