aboutsummaryrefslogtreecommitdiff
path: root/i3blocks/i3weather.sh
diff options
context:
space:
mode:
authorInigoGutierrez <inigogf.95@gmail.com>2019-11-06 21:15:11 +0100
committerInigoGutierrez <inigogf.95@gmail.com>2019-11-06 21:15:11 +0100
commit9315b5aa24f8b2dd73624932ab36bf159bf7760e (patch)
tree435198656460a32b3266df62ad2add420b9da310 /i3blocks/i3weather.sh
parent4be52d865fd40a6751a5cd0b1681c68f54750830 (diff)
downloadscripts-9315b5aa24f8b2dd73624932ab36bf159bf7760e.tar.gz
scripts-9315b5aa24f8b2dd73624932ab36bf159bf7760e.zip
Some dunst usage in weather i3blocks modules.
Diffstat (limited to 'i3blocks/i3weather.sh')
-rwxr-xr-xi3blocks/i3weather.sh10
1 files changed, 5 insertions, 5 deletions
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*}