fix bar to work for shivan and kestrel

This commit is contained in:
Tyler Starr 2024-03-10 21:37:58 -07:00
parent 918204f8f3
commit d79bc6f744
2 changed files with 11 additions and 2 deletions

View File

@ -8,7 +8,7 @@
"network", "custom/separator", "network", "custom/separator",
"cpu", "custom/separator", "cpu", "custom/separator",
"memory", "custom/separator", "memory", "custom/separator",
"custom/mouse", "custom/separator", "custom/laptop_batt", "custom/mouse", "custom/separator",
"pulseaudio", "custom/separator", "pulseaudio", "custom/separator",
"custom/disk", "custom/bits"], "custom/disk", "custom/bits"],
@ -49,6 +49,11 @@
"format-disconnected": "", "format-disconnected": "",
"on-click": "nm-connection-editor" "on-click": "nm-connection-editor"
}, },
"custom/laptop_batt": {
"format": " 󰁹 <span color=\"#{{ .themes.gruvbox.red }}\">{}</span>% ",
"interval": 5,
"exec": "cat /sys/class/power_supply/BAT0/capacity",
},
"custom/mouse": { "custom/mouse": {
"format": " 󰍽 <span color=\"#{{ .themes.gruvbox.red }}\">{}</span>% ", "format": " 󰍽 <span color=\"#{{ .themes.gruvbox.red }}\">{}</span>% ",
"interval": 5, "interval": 5,
@ -77,7 +82,7 @@
"spacing": 10 "spacing": 10
}, },
"custom/separator": { "custom/separator": {
"format": " | ", "format": " <span color=\"#{{ .themes.gruvbox.green }}\">|</span> ",
"interval": "once", "interval": "once",
"tooltip": false "tooltip": false
}, },

View File

@ -114,6 +114,10 @@ window#waybar.hidden {
color: @fg; color: @fg;
} }
#custom-laptop_batt {
color: @fg;
}
#custom-mouse { #custom-mouse {
color: @fg; color: @fg;
} }