diff --git a/waybar/config.jsonc b/waybar/config.jsonc index ba948fc..0e09878 100644 --- a/waybar/config.jsonc +++ b/waybar/config.jsonc @@ -27,7 +27,6 @@ }, "custom/weather":{ "interval":600, - "return-type":"json", "exec":"~/.config/waybar/scripts/wttr.sh" }, "network#warp":{ diff --git a/waybar/scripts/wttr.sh b/waybar/scripts/wttr.sh index 9f91d2b..cb0b772 100755 --- a/waybar/scripts/wttr.sh +++ b/waybar/scripts/wttr.sh @@ -1,3 +1,3 @@ -wttr=$(curl -s "https://wttr.in/Louisville?m&format=%t") -tooltip=$(curl -s "https://wttr.in/Louisville?m&format=%C:RealFeel+%f:UV+Index+%u:Precip.+%p:Wind+%w"|sed 's/:/\\n/g') -echo -E "{\"text\":\"$wttr\",\"tooltip\":\"$tooltip\"}" +echo "Weather " +curl -s "https://wttr.in/Louisville?m0dQT"|tr '\n' '\r' +printf "Last Updated ";date +%T