From bcbb412dd99cef8da447f6cafd3ba5121707c81c Mon Sep 17 00:00:00 2001 From: sefidel Date: Fri, 2 Aug 2024 01:39:03 +0900 Subject: feat(home/gui): waybar: add battery charging indicator --- home/profiles/gui/config/waybar/style.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/home/profiles/gui/config/waybar/style.nix b/home/profiles/gui/config/waybar/style.nix index 92eb772..ac6aad7 100644 --- a/home/profiles/gui/config/waybar/style.nix +++ b/home/profiles/gui/config/waybar/style.nix @@ -73,6 +73,21 @@ in border-bottom: 1px solid #${bright0}; } + @keyframes blinkBattery { + to { + border-color: #${color3}; + } + } + + #battery.charging { + border-bottom: 1px solid transparent; + animation-name: blinkBattery; + animation-duration: 1s; + animation-timing-function: steps(12); + animation-iteration-count: infinite; + animation-direction: alternate; + } + #tray { /* TODO: https://github.com/Alexays/Waybar/issues/2906 */ margin: 0; -- cgit 1.4.1