trying out feh
This commit is contained in:
parent
e9cb9b4cf6
commit
a9a5eb802c
11
weather
11
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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user