From 40ef2e03d1eda3d7e2af537b47e2ec56e7d09623 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20La=C3=ADn?= Date: Thu, 29 Aug 2024 19:27:08 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(waybar):=20weather=20module?= =?UTF-8?q?=20loads=20of=20wttr-bar=20is=20on=20$PATH?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .config/waybar/modules/custom-weather.jsonc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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", }, }