From a9ae6ff872a61df886a19e25f27156623c72203d Mon Sep 17 00:00:00 2001 From: Johannes Rothe Date: Sun, 17 Mar 2024 22:10:06 +0100 Subject: [PATCH] Waybar: Correct plugged state --- home/rothe.nix | 19 ++++++++++--------- home/waybar.css | 4 ++++ 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/home/rothe.nix b/home/rothe.nix index 4198029..fcbb340 100644 --- a/home/rothe.nix +++ b/home/rothe.nix @@ -238,19 +238,20 @@ format = "{:%a, %d.%m.%Y CW%V %H:%M}"; }; "cpu" = { - "interval" = 30; - "format" = "󰗉 {load}"; + interval = 30; + format = "󰗉 {load}"; }; "memory" = { - "interval" = 30; - "format" = " {percentage}%"; + interval = 30; + format = " {percentage}%"; }; "battery" = { - "interval" = 10; - "format" = "󰁹 {capacity}% ({time})"; - "format-charging" = " {capacity}%"; - "format-full" = " {capacity}%"; - "states" = { + interval = 10; + format = "󰁹 {capacity}% ({time})"; + format-charging = " {capacity}%"; + format-plugged = " {capacity}%"; + format-full = " {capacity}%"; + states = { "warning" = 30; "critical" = 15; }; diff --git a/home/waybar.css b/home/waybar.css index 1973e45..d7fd859 100644 --- a/home/waybar.css +++ b/home/waybar.css @@ -66,6 +66,10 @@ window { color: #9dd274; } +#battery.plugged { + color: #9dd274; +} + #battery.full { color: #9dd274; }