about summary refs log tree commit diff
path: root/home/profiles/gui
diff options
context:
space:
mode:
authorsefidel <contact@sefidel.net>2024-08-02 01:39:03 +0900
committersefidel <contact@sefidel.net>2024-08-02 01:59:09 +0900
commitbcbb412dd99cef8da447f6cafd3ba5121707c81c (patch)
treedf49711eb1b18ae70468f8e915ad4397c1234536 /home/profiles/gui
parentf968fc4fe53bb9c820445c377c01fb666483f07e (diff)
downloadnixrc-bcbb412dd99cef8da447f6cafd3ba5121707c81c.tar.gz
nixrc-bcbb412dd99cef8da447f6cafd3ba5121707c81c.zip
feat(home/gui): waybar: add battery charging indicator
Diffstat (limited to 'home/profiles/gui')
-rw-r--r--home/profiles/gui/config/waybar/style.nix15
1 files changed, 15 insertions, 0 deletions
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;