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