From 158115142c789ddbba1a0fdc3f79df0f51e792ed Mon Sep 17 00:00:00 2001 From: S4NKALP Date: Mon, 22 Jan 2024 15:50:58 +0545 Subject: [PATCH] feat(system): update weather module --- config/waybar/modules | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/config/waybar/modules b/config/waybar/modules index 564a5962..a36a4476 100644 --- a/config/waybar/modules +++ b/config/waybar/modules @@ -119,7 +119,7 @@ "2": "", "3": "", "4": "", - "5": "", + "5": "", "6": "󰚌", "7": "", "8": "", @@ -540,17 +540,11 @@ "on-click": "kitty -T update paru -Syu || yay -Syu && notify-send 'The system has been updated'", }, -"custom/weather": { - "format": "{}", - "format-alt": "{alt}: {}", - "format-alt-click": "click", - "interval": 1, - "return-type": "json", - "exec": "~/.config/hypr/scripts/RunCMD.sh weather", - "exec-if": "ping wttr.in -c1", - "tooltip" : true, -}, - + "custom/weather": { + "exec": "curl -s 'https://wttr.in/kohalpur?format=2' | tr -d ' '", + "tooltip": false, + "interval": 900 + }, "custom/CpuTemp":{ "exec": "~/.config/hypr/scripts/HeatSensors.sh", "interval": 10,