diff --git a/polybar/config b/polybar/config index ebb3a44..39a6ae5 100644 --- a/polybar/config +++ b/polybar/config @@ -99,6 +99,21 @@ time-alt = %I:%M:%S label = %date% %time% format-underline = ${colors.blue} +[module/battery] +type = internal/battery +full-at = 99 +time-format = %H:%M +; $ ls -1 /sys/class/power_supply/ +battery = BAT0 +adapter = ADP1 +poll-interval = 1 + +format-charging = +format-charging-underline = ${colors.blue} + +format-discharging = +format-discharging-underline = ${colors.blue-light} + [settings] screenchange-reload = true ;compositing-background = xor