Battery now shows time left. Added second battery module to show current discharge rate in W.

This commit is contained in:
RealStickman 2020-02-14 08:20:41 +00:00
parent 0f538005df
commit 8b4106ec93

View File

@ -121,7 +121,7 @@ font-2 = "Noto Sans:size=10;0"
font-3 = "Noto Sans Mono:size=10;0"
modules-left = i3 xwindow
modules-center = cpu1 memory2
modules-center = cpu1 memory2 battery2
modules-right = battery date volume wired-network wireless-network
separator = |
@ -392,15 +392,16 @@ type = internal/battery
battery = BAT0
adapter = AC0
full-at = 100
time-format = %H:%M
format-charging = <animation-charging> <label-charging>
label-charging =  %percentage%%
label-charging =  %percentage%% %time% left
format-charging-foreground = ${colors.foreground}
format-charging-background = ${colors.background}
format-charging-underline = #a3c725
format-discharging = <ramp-capacity> <label-discharging>
label-discharging =  %percentage%%
label-discharging =  %percentage%% %time% left
format-discharging-underline = #c7ae25
format-discharging-foreground = ${colors.foreground}
format-discharging-background = ${colors.background}
@ -430,6 +431,29 @@ animation-charging-framerate = 750
################################################################################
[module/battery2]
;https://github.com/jaagr/polybar/wiki/Module:-battery
type = internal/battery
battery = BAT0
adapter = AC0
full-at = 100
format-charging = <label-charging>
label-charging = %consumption%W
format-charging-foreground = ${colors.foreground}
format-charging-background = ${colors.background}
format-charging-underline = #a3c725
format-discharging = <label-discharging>
label-discharging = %consumption%W
format-discharging-underline = #c7ae25
format-discharging-foreground = ${colors.foreground}
format-discharging-background = ${colors.background}
################################################################################
[module/compton]
;https://github.com/jaagr/polybar/wiki/User-contributed-modules#compton
type = custom/script