From 178e4c0bb075ff3349610d51b17139f7c56f80aa Mon Sep 17 00:00:00 2001 From: Logan Gartner Date: Thu, 10 Feb 2022 15:50:01 -0700 Subject: [PATCH] Battery indicator now blinks angrily at you when battery is very low --- .config/waybar/style.css | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/.config/waybar/style.css b/.config/waybar/style.css index 6e9e959..ecda99d 100644 --- a/.config/waybar/style.css +++ b/.config/waybar/style.css @@ -55,6 +55,26 @@ window#waybar.solo { 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 { color: rgba(255, 210, 4, 1); } @@ -63,7 +83,6 @@ window#waybar.solo { color: rgba(238, 46, 36, 1); } -/* #battery.charging { color: rgba(217, 216, 216, 1); }