waybar: Highlight battery status when critical

This commit is contained in:
SebastianStork 2025-11-22 19:40:16 +01:00
parent 2179019cbc
commit af9571ee1f
Signed by: SebastianStork
SSH key fingerprint: SHA256:tRrGdjYOwgHxpSc/wTOZQZEjxcb15P0tyXRsbAfd+2Q

View file

@ -95,10 +95,7 @@
"󰂂" "󰂂"
"󰁹" "󰁹"
]; ];
states = { states.critical = 10;
critical = 5;
warning = 15;
};
}; };
}; };
@ -135,6 +132,10 @@
color: @theme_selected_fg_color; color: @theme_selected_fg_color;
font-weight: bold; font-weight: bold;
} }
#battery.critical {
color: @error_color;
}
''; '';
}; };
}; };