add more battery states

This commit is contained in:
Joel Mathew Thomas
2025-03-13 13:55:47 +05:30
parent 85be075628
commit 8e7093df2d
2 changed files with 9 additions and 2 deletions
+4 -1
View File
@@ -81,7 +81,10 @@
"format": "{:%I:%M %p}" "format": "{:%I:%M %p}"
}, },
"battery": { "battery": {
"interval": 10, "interval": 2,
"states": {
"warning": 30
},
"format": "{icon}", "format": "{icon}",
"format-charging": "󰂄", "format-charging": "󰂄",
"format-icons": ["󰂎", "󰁺", "󰁻", "󰁼", "󰁽", "󰁾", "󰁿", "󰂀", "󰂁", "󰂂", "󰁹"], "format-icons": ["󰂎", "󰁺", "󰁻", "󰁼", "󰁽", "󰁾", "󰁿", "󰂀", "󰂁", "󰂂", "󰁹"],
+5 -1
View File
@@ -158,7 +158,11 @@ button {
color: @green; color: @green;
} }
#battery.warning:not(.charging) { #battery.plugged {
color: @blue;
}
#battery.warning {
color: @red; color: @red;
} }