From 9001a8f4bd5fc1b6ee309fad53ac7948ecf2b5ce Mon Sep 17 00:00:00 2001 From: Joakim Hulthe Date: Mon, 18 Nov 2024 20:46:21 +0100 Subject: [PATCH] eww: Flash battery gauge when low --- tree/.config/eww/eww.scss | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tree/.config/eww/eww.scss b/tree/.config/eww/eww.scss index 19ee137..c7de8c2 100644 --- a/tree/.config/eww/eww.scss +++ b/tree/.config/eww/eww.scss @@ -142,12 +142,23 @@ scale trough { .battery-gauge.low { color: red; + animation: 1s ease-in 1s infinite alternate battery-gauge-low; } .battery-gauge.charging { color: purple; } +@keyframes battery-gauge-low { + from { + background-color: $background; + } + + to { + background-color: red; + } +} + .calendar { background: $lowlight2; }