From 0a5b80c4574b2ec615e9f49407ce6b036a431f6f Mon Sep 17 00:00:00 2001 From: Ethan Lane Date: Fri, 9 Aug 2024 17:49:39 +0100 Subject: [PATCH] Add battery to polybar --- config/packages/polybar/config.ini | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/config/packages/polybar/config.ini b/config/packages/polybar/config.ini index 2170f49..c47a99f 100644 --- a/config/packages/polybar/config.ini +++ b/config/packages/polybar/config.ini @@ -160,6 +160,26 @@ inherit = network-base interface-type = wired label-connected = %{F#63C5DA}%ifname%%{F-} %local_ip% +[module/battery] +type = internal/battery +; ls -1 /sys/class/power_supply/ +battery = BAT1 +adapter = ACAD + +format-charging = +format-discharging = + +label-charging =  %percentage% +label-discharging = %percentage% +label-full = Fully charged +label-low = BATTERY LOW + +ramp-capacity-0 =  +ramp-capacity-1 =  +ramp-capacity-2 =  +ramp-capacity-3 =  +ramp-capacity-4 =  + [module/date] type = internal/date interval = 1 -- 2.45.2