From a9a5eb802c464a6d8a04a11c79860241826879b9 Mon Sep 17 00:00:00 2001 From: spinach <19keegandeppe@gmail.com> Date: Thu, 9 Feb 2023 22:58:33 -0500 Subject: [PATCH] trying out feh --- weather | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/weather b/weather index cce540a..467c603 100755 --- a/weather +++ b/weather @@ -276,16 +276,9 @@ display_forecast() { exit 1 fi - FORECAST="curl -fsSL https://wttr.in/${LAT},${LON}" + curl -fsSL "https://wttr.in/${LAT},${LON}_.png">/tmp/weather.png - if [[ ! -z "$TMUX" ]] ; then - # can display in a popup - tmux display-popup "echo 'Grabbing forecast...'; $FORECAST" - else - $FORECAST >/tmp/weather - weather="/tmp/weather" - setsid -f st -e less -Srf "$weather" - fi + setsid -f feh -F /tmp/weather.png exit 0 }