From 097b8880f87e7a2a0af05deb31cde685974cb836 Mon Sep 17 00:00:00 2001 From: RGBCube Date: Fri, 15 Dec 2023 21:15:03 +0300 Subject: [PATCH] Blink battery when low --- modules/waybar/default.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/modules/waybar/default.nix b/modules/waybar/default.nix index 8584023..b53299e 100644 --- a/modules/waybar/default.nix +++ b/modules/waybar/default.nix @@ -160,6 +160,21 @@ graphicalConfiguration { #tray, #pulseaudio, #backlight, #cpu, #memory, #network, #battery, #clock { margin-left: 20px; } + + @keyframes blink { + to { + color: ${base05}; + } + } + + #battery.critical:not(.charging) { + animation-direction: alternate; + animation-duration: 0.5s; + animation-iteration-count: infinite; + animation-name: blink; + animation-timing-function: linear; + color: ${base08}; + } ''; }; }