#!/bin/sh# i3weather.sh (i3blocks weather module)## Usage: i3weather.sh## Prints a one-line current weather reportcase$BLOCK_BUTTON in
1) dunstify "$(curl wttr.in/?0qT)";;#2) # Middle click#3) # Right clickesacoutput="$(curl 'wttr.in/Oviedo?format=%c+%t+%p+%w'| sed 's/+//g')"echo${output% k*}