From 5212d6c0ab4e1dd1f9addefafbba68539f3dc0fc Mon Sep 17 00:00:00 2001 From: Adam <24621027+WhiteDopeOnPunk@users.noreply.github.com> Date: Sat, 17 Jun 2023 18:48:15 -0400 Subject: [PATCH] add battery widget --- configs/waybar/config | 10 +++++----- configs/waybar/style.css | 12 ++++-------- 2 files changed, 9 insertions(+), 13 deletions(-) diff --git a/configs/waybar/config b/configs/waybar/config index f1059d6..0ba3dcd 100644 --- a/configs/waybar/config +++ b/configs/waybar/config @@ -8,7 +8,7 @@ "modules-left": ["river/tags"], "modules-center": ["river/window"], - "modules-right": ["idle_inhibitor", "pulseaudio", "network", "cpu", "memory", "tray", "clock"], + "modules-right": ["idle_inhibitor", "pulseaudio", "network", "cpu", "memory", "battery", "tray", "clock"], // modules config @@ -70,10 +70,10 @@ "warning": 30, "critical": 15 }, - "format": "{capacity}% {icon}", - "format-charging": "{capacity}% ", - "format-plugged": "{capacity}% ", - "format-alt": "{time} {icon}", + "format": "{icon} {capacity}%", + "format-charging": "{capacity}%", + "format-plugged": "{capacity}%", + "format-alt": "{icon} {time}", // "format-good": "", // An empty format will hide the module // "format-full": "", "format-icons": ["", "", "", "", ""] diff --git a/configs/waybar/style.css b/configs/waybar/style.css index 43dbed2..25bb26e 100644 --- a/configs/waybar/style.css +++ b/configs/waybar/style.css @@ -50,7 +50,8 @@ button:hover { #memory, #network, #tray, -#pulseaudio { +#pulseaudio, +#battery { background-color: @color1; padding: 0 10px; } @@ -78,14 +79,9 @@ button:hover { background-color: #eb4d4b; } -#battery { - background-color: #ffffff; - color: #000000; -} - #battery.charging, #battery.plugged { - color: #ffffff; - background-color: #26A65B; + color: @foreground; + background-color: @color1; } @keyframes blink {