diff --git a/.config/waybar/modules/custom-weather.jsonc b/.config/waybar/modules/custom-weather.jsonc index 0fe96874..2ee5f388 100644 --- a/.config/waybar/modules/custom-weather.jsonc +++ b/.config/waybar/modules/custom-weather.jsonc @@ -1,12 +1,13 @@ { "custom/weather": { + "exec-if": "which wttrbar", "exec": "wttrbar --location Alicante", "restart-interval": 300, "tooltip": true, "format": "{}°", "return-type": "json", - "on-click": "kitty --hold --class center-float wttr Alicante", - "on-click-right": "kitty --hold --class center-float wttr -v2 Alicante", + "on-click": "kitty --hold --class center-float fish -c 'wttr Alicante'", + "on-click-right": "kitty --hold --class center-float fish -c 'wttr -v2 Alicante'", "on-click-middle": "xdg-open https://wttr.in/alicante", }, }