From 2ab348bf85808d296cf74c7e7d5e402defb85e5b Mon Sep 17 00:00:00 2001 From: InigoGutierrez Date: Wed, 6 Nov 2019 17:09:22 +0100 Subject: Created script for i3blocks weather module. --- i3blocks/i3weather.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 i3blocks/i3weather.sh (limited to 'i3blocks') diff --git a/i3blocks/i3weather.sh b/i3blocks/i3weather.sh new file mode 100755 index 0000000..f304bbc --- /dev/null +++ b/i3blocks/i3weather.sh @@ -0,0 +1,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*} -- cgit v1.2.1