From bb2359c30f8ade19fc7e60ab825d2744d0c04fcf Mon Sep 17 00:00:00 2001 From: adam <56338480+adastx@users.noreply.github.com> Date: Mon, 31 Oct 2022 18:28:46 +0100 Subject: polybar: added low battery warning --- .config/polybar/config.ini | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.config/polybar/config.ini b/.config/polybar/config.ini index 837f956..970af47 100644 --- a/.config/polybar/config.ini +++ b/.config/polybar/config.ini @@ -79,10 +79,13 @@ label-urgent-background = ${colors.alert} type = internal/battery battery = BAT0 adapter = ADP1 +full-at = 90 +low-at = 10 format-discharging = format-charging = format-full = +format-low = ramp-capacity-0 =  ramp-capacity-1 =  @@ -90,12 +93,17 @@ ramp-capacity-2 =  ramp-capacity-3 =  ramp-capacity-4 =  +animation-low-0 =  +animation-low-1 =  + label-charging =  label-full =  format-discharging-padding = 2 format-charging-padding = 2 format-full-padding = 2 +format-low-padding = 2 +format-low-foreground = ${colors.red} [module/date] type = internal/date @@ -119,10 +127,10 @@ label-muted =  label-muted-foreground = ${colors.gray} label-muted-padding = 2 -ramp-volume-padding = 2 ramp-volume-0 =  ramp-volume-1 =  ramp-volume-2 =  +ramp-volume-padding = 2 [module/xwindow] type = internal/xwindow -- cgit v1.2.3-70-g09d2