diff options
Diffstat (limited to '.config/waybar/modules')
| -rwxr-xr-x | .config/waybar/modules/weather.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/.config/waybar/modules/weather.sh b/.config/waybar/modules/weather.sh index 210c20a..0b83de1 100755 --- a/.config/waybar/modules/weather.sh +++ b/.config/waybar/modules/weather.sh @@ -3,6 +3,10 @@ set -e [ -n "$DEBUG" ] && set -x loc=$1 +if [ -z "${loc}" ]; then + # use /etc/localtime + loc=$(basename "$(readlink -f /etc/localtime)") +fi if [ -n "$REPORT" ]; then curl -s v2.wttr.in/"${loc}"?F | less |