summaryrefslogtreecommitdiff
path: root/.config/waybar/modules/weather.sh
diff options
context:
space:
mode:
Diffstat (limited to '.config/waybar/modules/weather.sh')
-rwxr-xr-x.config/waybar/modules/weather.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/.config/waybar/modules/weather.sh b/.config/waybar/modules/weather.sh
new file mode 100755
index 0000000..d64acd0
--- /dev/null
+++ b/.config/waybar/modules/weather.sh
@@ -0,0 +1,6 @@
+#!/bin/sh
+w=$(curl -s wttr.in/ahn?format="%l:+%c+%t+%C+%w+%h+%m")
+w=${w:7}
+w="$(echo -e "${w}" | sed -e 's/^[[:space:]]*//')"
+m=$(python ~/bin/moonphase-waybar.py)
+echo "{\"text\":\""$w ""$m"\", \"tooltip\":\""tooltip"\", \"class\":\""lxf-weather"\"}"