diff options
Diffstat (limited to '.config/waybar/modules')
-rwxr-xr-x[-rw-r--r--] | .config/waybar/modules/storage.sh | 0 | ||||
-rwxr-xr-x | .config/waybar/modules/weather.sh | 6 |
2 files changed, 6 insertions, 0 deletions
diff --git a/.config/waybar/modules/storage.sh b/.config/waybar/modules/storage.sh index d495da4..d495da4 100644..100755 --- a/.config/waybar/modules/storage.sh +++ b/.config/waybar/modules/storage.sh 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"\"}" |