Add battery to polybar (#20)

Reviewed-on: #20
Co-authored-by: Ethan Lane <ethan@vylpes.com>
Co-committed-by: Ethan Lane <ethan@vylpes.com>
This commit is contained in:
Ethan Lane 2024-08-09 17:54:23 +01:00 committed by Vylpes
parent afcace7334
commit ee93226faf

View file

@ -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 = <ramp-capacity> <label-charging>
format-discharging = <ramp-capacity> <label-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