From 72c39240811f1def43fca71de51566d206f7728d Mon Sep 17 00:00:00 2001 From: Robert Günzler Date: Thu, 21 Jan 2021 19:33:10 +0100 Subject: Update 2021-01-21T18:33:10Z --- .config/waybar/modules/weather.sh | 4 ++++ 1 file changed, 4 insertions(+) (limited to '.config/waybar/modules') 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 -- cgit 1.4.1