From fd943292b7ce7f35ea52471ea6b87a68192d9acd Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Tue, 4 Jul 2023 04:18:31 -0500 Subject: [PATCH] refactor(waybar): improve battery module --- dots/.config/waybar/config | 8 ++++++-- dots/.config/waybar/style.css | 11 +++++++---- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/dots/.config/waybar/config b/dots/.config/waybar/config index 9b195919..fb936bb4 100644 --- a/dots/.config/waybar/config +++ b/dots/.config/waybar/config @@ -41,9 +41,13 @@ "critical": 10 }, "tooltip": false, + "interval": 3, "full-at": 95, - "format-plugged": "{icon} {capacity}%", - "format-charging": "{icon} {capacity}%", + "format-plugged": "󰚥{icon} {capacity}%", + "format-charging": "󱐋{icon} {capacity}%", + "format-near-critical": "󱈸{icon} {capacity}%", + "format-warning": "{icon} {capacity}%", + "format-critical": "󱈸{icon} {capacity}%", "format": "{icon} {capacity}%", "format-icons": [ "", diff --git a/dots/.config/waybar/style.css b/dots/.config/waybar/style.css index e162ffe2..52dcb7bf 100644 --- a/dots/.config/waybar/style.css +++ b/dots/.config/waybar/style.css @@ -150,17 +150,20 @@ color: #98bb6c; } -#battery.warning { +#battery.discharging.warning { color: #e6c384; } -#battery.near-critical { +#battery.discharging.near-critical { color: #c34043; } -#battery.critical { +#battery.discharging.critical { color: #e82424; - animation: blink_text 1.5s linear infinite; +} + +#battery.charging { + color: #A3D4D5; } /* Audio Device & Wireplumber Audio Return */