conky-config/scripts/update_location.sh

20 lines
329 B
Bash
Raw Normal View History

2016-08-11 23:25:56 -04:00
#!/bin/bash
location=$(zenity --text "Enter current location in one of the following formats
lat,lon
city,state,[country]
city,country
zip
airport" --entry)
location=${location//" "/"+"}
retval=$?
case $retval in
0)
echo "$location" > $CONKY_LUA_HOME/scripts/location
get_weather.sh;;
1)
echo "Cancel pressed.";;
esac