From 5b70fc792f7b0cc92c5b28c59ff95984ce886db7 Mon Sep 17 00:00:00 2001 From: zachir Date: Thu, 11 Jul 2024 09:56:51 -0500 Subject: cas: Add waybar module for BAT1 Cas has two batteries, waybar now has modules for both of them. --- waybar/config | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/waybar/config b/waybar/config index d8506d2..d72fbf8 100644 --- a/waybar/config +++ b/waybar/config @@ -11,7 +11,7 @@ "modules-left":[ "hyprland/workspaces", "custom/launcher", "hyprland/window"], "modules-center":[], - "modules-right":[ "mpd", "idle_inhibitor", "pulseaudio", "cpu", "memory", "battery", "temperature#0", "temperature#1", "backlight", "network", "clock", "tray", "custom/power"], + "modules-right":[ "mpd", "idle_inhibitor", "pulseaudio", "cpu", "memory", "battery#BAT0", "battery#BAT1", "temperature#0", "temperature#1", "backlight", "network", "clock", "tray", "custom/power"], // Modules configuration @@ -94,7 +94,7 @@ "memory": { "format": "{}% " }, - "battery": { + "battery#BAT0": { "bat": "BAT0", "interval": 60, "state": { @@ -104,6 +104,16 @@ "format": "{capacity}%", "max-length": 25 }, + "battery#BAT1": { + "bat": "BAT1", + "interval": 60, + "state": { + "warning": 30, + "critical": 15 + }, + "format": "{capacity}%", + "max-length": 25 + }, "temperature#0": { "thermal-zone": 0, // "hwmon-path": "cat /sys/class/hwmon/hwmon5/temp1_input", -- cgit v1.2.3