diff options
-rwxr-xr-x | i3blocks/i3moon.sh | 1 | ||||
-rwxr-xr-x | i3blocks/i3weather.sh | 10 |
2 files changed, 6 insertions, 5 deletions
diff --git a/i3blocks/i3moon.sh b/i3blocks/i3moon.sh index d691e8d..4bacaf6 100755 --- a/i3blocks/i3moon.sh +++ b/i3blocks/i3moon.sh @@ -16,5 +16,6 @@ echo "$moon" case $BLOCK_BUTTON in 1) dunstify -r "$(dunstifyIDs.sh "moon")" "$moon $(pom) $moon";; + 3) dunstify -r "$(dunstifyIDs.sh "moon")" "moon" "$(curl 'wttr.in/moon?0T')";; esac diff --git a/i3blocks/i3weather.sh b/i3blocks/i3weather.sh index f304bbc..ea4fb27 100755 --- a/i3blocks/i3weather.sh +++ b/i3blocks/i3weather.sh @@ -6,11 +6,11 @@ # # Prints a one-line current weather report -#case $BLOCK_BUTTON in -# 1) # Left click -# 2) # Middle click -# 3) # Right click -#esac +case $BLOCK_BUTTON in + 1) dunstify "$(curl wttr.in/?0qT)";; + #2) # Middle click + #3) # Right click +esac output="$(curl 'wttr.in/Oviedo?format=%c+%t+%p+%w' | sed 's/+//g')" echo ${output% k*} |