diff --git a/polybar/config.ini b/polybar/config.ini index 473f385..134582b 100644 --- a/polybar/config.ini +++ b/polybar/config.ini @@ -33,7 +33,7 @@ font-0 = "Fira Sans SemiBold:size=11;2" font-1 = "Font Awesome 6 Free Solid:pixelsize=11;2" modules-left = xworkspaces mymenu modules-center = xwindow -modules-right = xkeyboard mysystem filesystem pulseaudio memory cpu date myexit +modules-right = battery xkeyboard mysystem filesystem pulseaudio memory cpu date myexit cursor-click = pointer cursor-scroll = ns-resize enable-ipc = true @@ -168,4 +168,18 @@ label-foreground = #FFFFFF screenchange-reload = true pseudo-transparency = true +[module/battery] +type = internal/battery +label-discharging = " %percentage%%" +label-full = " 100%" +label-charging = " %percentage%% +label-low = " BATTERY LOW" +full-at = 99 +low-at = 5 +; Use the following command to list batteries and adapters: +; $ ls -1 /sys/class/power_supply/ +battery = BAT1 +; adapter = AC +poll-interval = 5 + ; vim:ft=dosini