diff options
author | InigoGutierrez <inigogf.95@gmail.com> | 2019-11-06 21:15:11 +0100 |
---|---|---|
committer | InigoGutierrez <inigogf.95@gmail.com> | 2019-11-06 21:15:11 +0100 |
commit | 9315b5aa24f8b2dd73624932ab36bf159bf7760e (patch) | |
tree | 435198656460a32b3266df62ad2add420b9da310 /i3blocks | |
parent | 4be52d865fd40a6751a5cd0b1681c68f54750830 (diff) | |
download | scripts-9315b5aa24f8b2dd73624932ab36bf159bf7760e.tar.gz scripts-9315b5aa24f8b2dd73624932ab36bf159bf7760e.zip |
Some dunst usage in weather i3blocks modules.
Diffstat (limited to 'i3blocks')
-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*} |