From a3bb1315f922dc106fc027ba7ed8f935e6864750 Mon Sep 17 00:00:00 2001 From: Ryan Schanzenbacher Date: Tue, 17 Jun 2025 04:39:19 +0200 Subject: added waybar entry for second battery --- home-config/waybar/config | 15 ++++++++++++++- home-config/waybar/style.css | 6 +++--- 2 files changed, 17 insertions(+), 4 deletions(-) (limited to 'home-config/waybar') diff --git a/home-config/waybar/config b/home-config/waybar/config index 375835e..abe0762 100644 --- a/home-config/waybar/config +++ b/home-config/waybar/config @@ -5,7 +5,7 @@ "modules-left": ["hyprland/workspaces", "hyprland/submap"], "modules-center": ["hyprland/window"], - "modules-right": ["tray", "custom/spotify", "privacy", "custom/weather", "custom/mail", "custom/storage", "backlight", "bluetooth", "pulseaudio", "network", "idle_inhibitor", "battery", "clock"], + "modules-right": ["tray", "custom/spotify", "privacy", "custom/weather", "custom/mail", "custom/storage", "backlight", "bluetooth", "pulseaudio", "network", "idle_inhibitor", "battery", "battery#num2", "clock"], "hyprland/submap": { "format": " {}" }, @@ -24,6 +24,19 @@ "tooltip": false }, "battery": { + "format": "{capacity}% {icon}", + "format-alt": "{time} {icon}", + "format-icons": ["", "", "", "", ""], + "format-charging": "{capacity}% ", + "interval": 30, + "states": { + "warning": 25, + "critical": 10 + }, + "tooltip": false, + "bat":"BAT0" + }, + "battery#num2": { "format": "{capacity}% {icon}", "format-alt": "{time} {icon}", "format-icons": ["", "", "", "", ""], diff --git a/home-config/waybar/style.css b/home-config/waybar/style.css index 548056f..682a14e 100644 --- a/home-config/waybar/style.css +++ b/home-config/waybar/style.css @@ -56,15 +56,15 @@ window#waybar.solo { min-width: 140px; } -#battery.warning { +#battery.warning #battery.num2.warning { color: rgba(255, 210, 4, 1); } -#battery.critical { +#battery.critical #battery.bat2.critical { color: rgba(238, 46, 36, 1); } -#battery.charging { +#battery.charging #battery.bat2.charging { color: rgba(217, 216, 216, 1); } -- cgit v1.2.3