summaryrefslogtreecommitdiffstats
path: root/.local/bin/conky/weather.sh
diff options
context:
space:
mode:
authorJoe <rrbo@proton.me>2023-02-14 14:34:46 +0100
committerJoe <rrbo@proton.me>2023-02-14 14:34:46 +0100
commit144bf65410acf7d3d0fbe61c37bc71bf500972ea (patch)
tree82831e3212e654d9f6ed9a2fea2ffc136c5e7122 /.local/bin/conky/weather.sh
parentup (diff)
downloaddotfiles-bsd-144bf65410acf7d3d0fbe61c37bc71bf500972ea.tar.gz
dotfiles-bsd-144bf65410acf7d3d0fbe61c37bc71bf500972ea.tar.bz2
dotfiles-bsd-144bf65410acf7d3d0fbe61c37bc71bf500972ea.tar.xz
dotfiles-bsd-144bf65410acf7d3d0fbe61c37bc71bf500972ea.tar.zst
dotfiles-bsd-144bf65410acf7d3d0fbe61c37bc71bf500972ea.zip
up
Diffstat (limited to '.local/bin/conky/weather.sh')
-rwxr-xr-x.local/bin/conky/weather.sh13
1 files changed, 5 insertions, 8 deletions
diff --git a/.local/bin/conky/weather.sh b/.local/bin/conky/weather.sh
index 273825c..b724fb6 100755
--- a/.local/bin/conky/weather.sh
+++ b/.local/bin/conky/weather.sh
@@ -2,17 +2,14 @@
os=$(cat /tmp/os)
-case $os in
- 1)
+case "$(hostname -s)" in
+ mother | po-rbo)
ping -c1 -w1 1.1.1.1 >/dev/null 2>&1 || exit
;;
- 2)
- ping -c1 -w1 1.1.1.1 >/dev/null 2>&1 || exit
- ;;
- 3)
+ fbsd-tp)
ping -c1 -t1 1.1.1.1 >/dev/null 2>&1 || exit
;;
esac
-echo 'WEATHER ${hr}
-${font2}${color #ebdbb2}${alignc}${exec curl wttr.in/Lyon?T0 --silent --max-time 3}${font}'
+echo '${font1}WEATHER ${hr}
+${font2}${color #ebdbb2}${alignc}${execi 1800 curl wttr.in/Lyon?T0 --silent --max-time 3}${font}'