home: Correct battery styling in status bar

This commit is contained in:
Mikael 2024-08-27 11:43:06 +02:00
parent 107cece97a
commit 8325c766ad
Signed by: mikael
SSH key fingerprint: SHA256:21QyD2Meiot7jOUVitIR5YkGB/XuXdCvLW1hE6dsri0

View file

@ -50,12 +50,12 @@ in lib.mkIf (osConfig.hardware.graphics.enable or false) {
min-width: 5mm;
}
#battery.5, #battery.10, #battery.15 {
color: ${red};
#battery.warning {
color: ${yellow};
}
#battery.20, #battery.25, #battery.30 {
color: ${yellow};
#battery.critical {
color: ${red};
}
#temperature.critical {
@ -209,6 +209,11 @@ in lib.mkIf (osConfig.hardware.graphics.enable or false) {
};
battery = {
states = {
warning = 25;
critical = 15;
};
format = "{icon} {capacity}%";
format-icons = {
full = "󱟢";