From 1f09556373c37cdc71d8aad421d8478ab5da19d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Pankowski?= Date: Tue, 21 Jul 2020 14:55:21 +0200 Subject: [PATCH] polybar: add battery module --- bspwm/.config/polybar/config | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/bspwm/.config/polybar/config b/bspwm/.config/polybar/config index 263860d..525c6b0 100644 --- a/bspwm/.config/polybar/config +++ b/bspwm/.config/polybar/config @@ -8,7 +8,7 @@ empty = ${xrdb:polybar.empty:#808080} [bar/panel] monitor = ${env:MONITOR:} modules-left = bspwm xwindow -modules-right = mpd date +modules-right = mpd battery date wm-restack = bspwm enable-ipc = true font-0 = ${xrdb:polybar.font:Iosevka:pixelsize=23:antialias=true:autohint=true;5} @@ -45,6 +45,14 @@ format-online = label-song-maxlen = 70 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] type = internal/date time = %H:%M