From 086097f2a91fafa883794e8edfa92760d6fd8025 Mon Sep 17 00:00:00 2001 From: Samuel O'Neal Date: Tue, 18 Aug 2026 08:03:33 -0600 Subject: [PATCH] waybar: add weather module to bar Add custom/weather module between battery and clock, polling weather.sh every 10 minutes. --- waybar/.config/waybar/config.jsonc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/waybar/.config/waybar/config.jsonc b/waybar/.config/waybar/config.jsonc index ff2a4de..eea9a2a 100644 --- a/waybar/.config/waybar/config.jsonc +++ b/waybar/.config/waybar/config.jsonc @@ -2,7 +2,7 @@ "position": "top", "modules-left": ["hyprland/workspaces", "mpris"], "modules-center": ["hyprland/window"], - "modules-right": ["cpu", "memory", "tray", "bluetooth", "network", "pulseaudio", "battery", "clock", "power-profiles-daemon", "custom/power"], + "modules-right": ["cpu", "memory", "tray", "bluetooth", "network", "pulseaudio", "battery", "custom/weather", "clock", "power-profiles-daemon", "custom/power"], "clock": { "format": "{:%a %d %H:%M}", "tooltip-format": "{:%Y %B}\n{calendar}" @@ -28,6 +28,12 @@ "memory": { "on-click": "~/.local/bin/btop.sh" }, + "custom/weather": { + "format": "{}", + "exec": "~/.local/bin/weather.sh", + "interval": 600, + "tooltip": false + }, "tray": { "icon-size": 16, "icon-theme": "Papirus-Dark",