#!/data/data/com.termux/files/usr/bin/bash
# weather: wttr.in, the weather of many waybar rices.
# No city uses where your network is. For a city, set the command to:
#   bash ~/.shortcuts/weather.sh Zagreb
# termux.zanoski.com/widgets
city="${*// /+}"
curl -s -m 8 "https://wttr.in/${city}?0Q" || echo "no network"
