Battery indicator now blinks angrily at you when battery is very low

This commit is contained in:
Logan G 2022-02-10 15:50:01 -07:00
parent 5a22ba4902
commit 178e4c0bb0
Signed by untrusted user: logan
GPG key ID: E328528C921E7A7A

View file

@ -55,6 +55,26 @@ window#waybar.solo {
color: rgba(36, 238, 46, 1); color: rgba(36, 238, 46, 1);
} }
#battery.warning:not(.charging) {
color: rgba(255, 210, 4, 1);
}
@keyframes blink {
to {
color: #000000;
}
}
#battery.critical:not(.charging) {
color: rgba(238, 46, 36, 1);
animation-name: blink;
animation-duration: 0.5s;
animation-timing-function: linear;
animation-iteration-count: infinite;
animation-direction: alternate;
}
/*
#battery.warning { #battery.warning {
color: rgba(255, 210, 4, 1); color: rgba(255, 210, 4, 1);
} }
@ -63,7 +83,6 @@ window#waybar.solo {
color: rgba(238, 46, 36, 1); color: rgba(238, 46, 36, 1);
} }
/*
#battery.charging { #battery.charging {
color: rgba(217, 216, 216, 1); color: rgba(217, 216, 216, 1);
} }