small QL changes

This commit is contained in:
lelgenio 2019-12-17 21:36:42 -03:00
parent 87c59a23fe
commit be4db3b8e2
2 changed files with 13 additions and 1 deletions

View File

@ -5,7 +5,11 @@ owm(){
# IPINFO=$(curl -s ipinfo.io/loc)
# LAT=$(echo $IPINFO | cut -d, -f1 | cut -d. -f1)
# LON=$(echo $IPINFO | cut -d, -f2 | cut -d. -f1)
CITY=$(curl -s ipinfo.io/city)
INFO=$(curl -s ipinfo.io)
CITY=$(echo $INFO | jq -r '.city')
REGI=$(echo $INFO | jq -r '.region')
COUN=$(echo $INFO | jq -r '.country')
QUERY="$CITY, $REGI, $COUN"
APPID="fd68c0fe7951f5ab7e24a240eb0942b8"
http get http://api.openweathermap.org/data/2.5/forecast\?APPID\=${APPID}\&q="${CITY}"\&units\=metric

View File

@ -224,6 +224,14 @@
bindsym $mod+Shift+x exec musmenu delete
bindsym $mod+Shift+s exec musmenu search
# }}}
# Special Keys{{{
bindsym XF86Calculator exec $term ipython
bindsym XF86Mail exec $term neomutt
bindsym XF86Explorer exec nemo
bindsym XF86HomePage exec xdg-open http://start.duckduckgo.com
# }}}
# }}}
# Visual: {{{