From d79bc6f7441655e62dd67a61abb1943668e8783d Mon Sep 17 00:00:00 2001 From: Tyler Starr Date: Sun, 10 Mar 2024 21:37:58 -0700 Subject: [PATCH] fix bar to work for shivan and kestrel --- home/dot_config/waybar/config.tmpl | 9 +++++++-- home/dot_config/waybar/style.css.tmpl | 4 ++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/home/dot_config/waybar/config.tmpl b/home/dot_config/waybar/config.tmpl index bebcc412..f5a9ec6f 100644 --- a/home/dot_config/waybar/config.tmpl +++ b/home/dot_config/waybar/config.tmpl @@ -8,7 +8,7 @@ "network", "custom/separator", "cpu", "custom/separator", "memory", "custom/separator", - "custom/mouse", "custom/separator", + "custom/laptop_batt", "custom/mouse", "custom/separator", "pulseaudio", "custom/separator", "custom/disk", "custom/bits"], @@ -49,6 +49,11 @@ "format-disconnected": "", "on-click": "nm-connection-editor" }, + "custom/laptop_batt": { + "format": " 󰁹 {}% ", + "interval": 5, + "exec": "cat /sys/class/power_supply/BAT0/capacity", + }, "custom/mouse": { "format": " 󰍽 {}% ", "interval": 5, @@ -77,7 +82,7 @@ "spacing": 10 }, "custom/separator": { - "format": " | ", + "format": " | ", "interval": "once", "tooltip": false }, diff --git a/home/dot_config/waybar/style.css.tmpl b/home/dot_config/waybar/style.css.tmpl index 6b292fa7..c7f32a2a 100644 --- a/home/dot_config/waybar/style.css.tmpl +++ b/home/dot_config/waybar/style.css.tmpl @@ -114,6 +114,10 @@ window#waybar.hidden { color: @fg; } +#custom-laptop_batt { + color: @fg; +} + #custom-mouse { color: @fg; }