From 9ef4bec1c76d753b47964c44b330da98d21ed0ee Mon Sep 17 00:00:00 2001 From: spinach <19keegandeppe@gmail.com> Date: Mon, 27 Feb 2023 10:02:00 -0500 Subject: [PATCH] made it general purpose --- weather | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/weather b/weather index 4d41b5d..20a0811 100755 --- a/weather +++ b/weather @@ -274,18 +274,14 @@ display_forecast() { echo "Location not found!" exit 1 fi - + echo "Loading weather..." if [[ -n "$PRETTY" ]] ; then # nerdfont - curl -fsSL "https://v2d.wttr.in/${LAT},${LON}?F" -o /tmp/weather + curl -fsSL "https://v2d.wttr.in/${LAT},${LON}?F" | less else - curl -fsSL "https://wttr.in/${LAT},${LON}?F" -o /tmp/weather + curl -fsSL "https://wttr.in/${LAT},${LON}?F" | less fi - # wil be sent to scratchpad in i3 - st -n weather -e less -Srf /tmp/weather & - i3-msg "[instance=weather] scratchpad show" >/dev/null - exit 0 }