From 86d4b1fdfe75da15a23540e9ef883494a2d2c247 Mon Sep 17 00:00:00 2001 From: Christian Colglazier Date: Tue, 28 Aug 2018 21:39:01 -0400 Subject: [PATCH] Added battery percentage --- polybar/config | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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