conky-config/scripts/update_location.sh

20 lines
329 B
Bash
Executable File

#!/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