trying out feh

This commit is contained in:
spinach 2023-02-09 22:58:33 -05:00
parent e9cb9b4cf6
commit a9a5eb802c

11
weather
View File

@ -276,16 +276,9 @@ display_forecast() {
exit 1 exit 1
fi fi
FORECAST="curl -fsSL https://wttr.in/${LAT},${LON}" curl -fsSL "https://wttr.in/${LAT},${LON}_.png">/tmp/weather.png
if [[ ! -z "$TMUX" ]] ; then setsid -f feh -F /tmp/weather.png
# 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
exit 0 exit 0
} }