From ee9d02e40a786dd36a0c2416d40c1e208fb97e8f Mon Sep 17 00:00:00 2001 From: Szymon P Date: Mon, 22 Sep 2025 13:38:41 +0200 Subject: [PATCH] Update .config/waybar/style.css --- private_dot_config/waybar/style.css | 37 +++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/private_dot_config/waybar/style.css b/private_dot_config/waybar/style.css index f41f7da..01fede7 100644 --- a/private_dot_config/waybar/style.css +++ b/private_dot_config/waybar/style.css @@ -74,3 +74,40 @@ window#waybar { #custom-notifications:hover { background-color: @sapphire; } + +#battery { + background-color: @base; +} + +#battery.warning:not(.charging) { + background: @warning; + color: @foreground; + animation-name: blink; + animation-duration: 1s; + animation-timing-function: steps(12); + animation-iteration-count: infinite; + animation-direction: alternate; +} + +#battery.charging, +#battery.plugged { + color: @foreground; + background-color: @success; +} + +#battery.critical:not(.charging) { + background-color: @critical; + color: @foreground; + animation-name: blink; + animation-duration: 1s; + animation-timing-function: steps(12); + animation-iteration-count: infinite; + animation-direction: alternate; +} + +@keyframes blink { + to { + background-color: #ff0000; + color: #000000; + } +}