aboutsummaryrefslogtreecommitdiff
path: root/i3blocks/i3weather.sh
blob: f304bbcd13676d58c92502c533806f47aaffea6a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

# i3weather.sh (i3blocks weather module)
#
# Usage: i3weather.sh
#
# Prints a one-line current weather report

#case $BLOCK_BUTTON in
#	1) # Left click
#	2) # Middle click
#	3) # Right click
#esac

output="$(curl 'wttr.in/Oviedo?format=%c+%t+%p+%w' | sed 's/+//g')"
echo ${output% k*}