feat: add battery and weather script

This commit is contained in:
2026-02-25 00:16:54 +01:00
parent de1e39b5c4
commit c21e5736d8
6 changed files with 183 additions and 4 deletions

View File

@@ -14,6 +14,7 @@
"memory",
"pulseaudio",
"clock",
"custom/weather",
"clock#simpleclock",
"custom/tailscale",
"network",
@@ -51,7 +52,7 @@
"window-rewrite": {
"class<*>": "󰘔 ",
"class<firefox>": "󰈹 ",
"class<app.zen_browser.zen>": " " ,
"class<app.zen_browser.zen>": "󰖟 " ,
"class<Code>": "󰨞 ",
"class<Alacritty>": "󰆍 ",
"class<Spotify>": "󰓇 ",
@@ -60,6 +61,9 @@
"class<com.seafile.seafile-applet>": "󰅟 ",
"class<org.gnome.Nautilus>": " ",
"class<org.gnome.Software>": " ",
"class<chromium-browser>": " ",
"class<chrome-web.telegram.org__-Default>": " ",
"class<chrome-music.youtube.com__-Default>": " "
}
},
"hyprland/window": {
@@ -152,6 +156,13 @@
"return-type": "json",
"tooltip": false,
},
"custom/weather": {
"format": "{}",
"interval": 600,
"exec": "~/.config/waybar/scripts/weather.sh", // or your dotfiles folder if you use stow
"return-type": "json",
"on-click": "gnome-weather"
},
"custom/tailscale": {
"exec": "~/.config/waybar/scripts/tailscale.sh",
"interval": 5,