polybar: add battery module

This commit is contained in:
Łukasz Pankowski 2020-07-21 14:55:21 +02:00
parent a8668f5409
commit 1f09556373

View File

@ -8,7 +8,7 @@ empty = ${xrdb:polybar.empty:#808080}
[bar/panel] [bar/panel]
monitor = ${env:MONITOR:} monitor = ${env:MONITOR:}
modules-left = bspwm xwindow modules-left = bspwm xwindow
modules-right = mpd date modules-right = mpd battery date
wm-restack = bspwm wm-restack = bspwm
enable-ipc = true enable-ipc = true
font-0 = ${xrdb:polybar.font:Iosevka:pixelsize=23:antialias=true:autohint=true;5} font-0 = ${xrdb:polybar.font:Iosevka:pixelsize=23:antialias=true:autohint=true;5}
@ -45,6 +45,14 @@ format-online = <label-song>
label-song-maxlen = 70 label-song-maxlen = 70
label-song-ellipsis = true label-song-ellipsis = true
[module/battery]
type = internal/battery
battery = BAT1
adapter = ACAD
full-at = 98
format-charging-foreground = ${colors.empty}
format-full-foreground = ${colors.empty}
[module/date] [module/date]
type = internal/date type = internal/date
time = %H:%M time = %H:%M