summaryrefslogtreecommitdiffstats
path: root/.local/bin/conky/weather.sh
blob: 4188814425f83cff4431e1bbc6e75b06c5df6e26 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

case "$(hostname -s)" in
	mother | po-rbo)
		ping -c1 -w1 1.1.1.1 >/dev/null 2>&1 || exit
		;;
	fbsd-tp)
		ping -c1 -t1 1.1.1.1 >/dev/null 2>&1 || exit
		;;
esac

echo '${color1}${font1}WEAT ${hr 2}
${font2}${color0}${alignc}${execi 1800 curl wttr.in/Lyon?T0 --silent --max-time 3}${font}'