summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoradam <56338480+adastx@users.noreply.github.com>2022-10-31 18:28:46 +0100
committeradam <56338480+adastx@users.noreply.github.com>2022-11-01 01:24:07 +0100
commitbb2359c30f8ade19fc7e60ab825d2744d0c04fcf (patch)
treefc8112dcf8f927e4d9030025a3e2d972d20a7416
parentedecb040d826daee023b382ac7aecff88fd8a8cf (diff)
polybar: added low battery warning
-rw-r--r--.config/polybar/config.ini10
1 files changed, 9 insertions, 1 deletions
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 = <ramp-capacity>
format-charging = <label-charging>
format-full = <label-full>
+format-low = <animation-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