Polybar: Refactor battery module, show capacity while charging

This commit is contained in:
Salt 2018-01-28 01:33:54 -06:00
parent 293d99a43f
commit 0debbd37b1

View File

@ -224,8 +224,10 @@ label-empty-background = ${res/colors.background}
[module/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-background = ${res/colors.icon-battery}
format-full = <label-full>
format-full-prefix = 
format-full-prefix-padding = ${res/config.padding}
@ -257,7 +259,6 @@ ramp-capacity-7= 
ramp-capacity-8= 
ramp-capacity-padding = ${res/config.padding}
ramp-capacity-foreground = ${res/colors.background}
ramp-capacity-background = ${res/colors.icon-battery}
animation-charging-0 = ${self.ramp-capacity-0}
animation-charging-1 = ${self.ramp-capacity-1}