summary refs log tree commit diff
path: root/.config/waybar/modules
diff options
context:
space:
mode:
authorRobert Günzler <r@gnzler.io>2021-01-21 19:33:10 +0100
committerRobert Günzler <r@gnzler.io>2021-01-21 19:40:20 +0100
commit72c39240811f1def43fca71de51566d206f7728d (patch)
treea33aa1331fc55b587a243f64ef94d781df40a8ae /.config/waybar/modules
parent0762801ed9627021e732cdeb225a737f44e3df42 (diff)
Update 2021-01-21T18:33:10Z
Diffstat (limited to '.config/waybar/modules')
-rwxr-xr-x.config/waybar/modules/weather.sh4
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