summaryrefslogtreecommitdiffstats
path: root/.local/bin/conky/weather.sh
blob: b24f5896aedda9204b6e4a60cc9d24f70ebc14a3 (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 9.9.9.9 >/dev/null 2>&1 || exit
		;;
	mars)
		ping -c1 -t1 9.9.9.9 >/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}'