From a0a3ead4bbb2781776b67bad139df33d5a5ac3a9 Mon Sep 17 00:00:00 2001 From: Tanguy Herbron Date: Mon, 26 Apr 2021 17:21:09 +0200 Subject: [PATCH] Rework polybar battery module --- .config/polybar/modules.ini | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/.config/polybar/modules.ini b/.config/polybar/modules.ini index acfb2fe..ad2cc95 100644 --- a/.config/polybar/modules.ini +++ b/.config/polybar/modules.ini @@ -157,7 +157,7 @@ ramp-foreground = ${color.yellow} type = internal/battery ; This is useful in case the battery never reports 100% charge -full-at = 100 +full-at = 97 ; Use the following command to list batteries and adapters: ; $ ls -1 /sys/class/power_supply/ @@ -185,20 +185,24 @@ time-format = %H:%M ; ; ; -format-charging = -format-charging-prefix =  +format-charging = +format-charging-prefix = " " +format-charging-prefix-foreground = ${color.blue} ; Available tags: ; (default) ; ; ; format-discharging = +format-discharging-foreground = ${color.blue} ; Available tags: ; (default) ; ; -format-full = +format-full = +format-full-prefix = " " +format-full-prefix-foreground = ${color.blue} ; Available tokens: ; %percentage% (default) @@ -212,10 +216,11 @@ label-charging = %percentage%% ; %time% ; %consumption% (shows current discharge rate in watts) label-discharging = %percentage%% +label-discharging-foreground = ${color.white} ; Available tokens: ; %percentage% (default) -label-full =  +label-full = %percentage%% ; Only applies if is used ramp-capacity-0 = 