blob: b724fb6ea61bb5a457dda47ddb3d24bd5ae25584 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#!/bin/sh
os=$(cat /tmp/os)
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 '${font1}WEATHER ${hr}
${font2}${color #ebdbb2}${alignc}${execi 1800 curl wttr.in/Lyon?T0 --silent --max-time 3}${font}'
|