diff options
author | zachir <zachir@librem.one> | 2024-07-11 09:56:51 -0500 |
---|---|---|
committer | zachir <zachir@librem.one> | 2024-07-11 09:56:51 -0500 |
commit | 5b70fc792f7b0cc92c5b28c59ff95984ce886db7 (patch) | |
tree | 85d3cffd201e70ca2b3f035968b3e258c1fac728 /waybar/config | |
parent | 330830deaa680b147541bfdee60f5260d92521da (diff) |
cas: Add waybar module for BAT1
Cas has two batteries, waybar now has modules for both of them.
Diffstat (limited to 'waybar/config')
-rw-r--r-- | waybar/config | 14 |
1 files 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", |