From 9315b5aa24f8b2dd73624932ab36bf159bf7760e Mon Sep 17 00:00:00 2001 From: InigoGutierrez Date: Wed, 6 Nov 2019 21:15:11 +0100 Subject: Some dunst usage in weather i3blocks modules. --- i3blocks/i3moon.sh | 1 + i3blocks/i3weather.sh | 10 +++++----- 2 files changed, 6 insertions(+), 5 deletions(-) (limited to 'i3blocks') 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*} -- cgit v1.2.1