From 6b37693904eedae1df967cd9cf9bc8affc4f1fa6 Mon Sep 17 00:00:00 2001 From: xeruf <27jf@pm.me> Date: Thu, 24 Mar 2022 11:34:28 +0100 Subject: [PATCH] config/neofetch/config-short: timeout everything --- .config/neofetch/config-short.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.config/neofetch/config-short.conf b/.config/neofetch/config-short.conf index 809683a..49d2657 100644 --- a/.config/neofetch/config-short.conf +++ b/.config/neofetch/config-short.conf @@ -9,8 +9,8 @@ print_info() { info "Host" model info "Uptime" uptime info "Memory" memory - prin "Weather" "$(timeout 1s curl --max-time 0.3 'wttr.in/?0?q?T' | awk '/°(C|F)/ {printf $(NF-1) $(NF) " ("a")"} /,/ {a=$0}' || echo Timeout)" - prin "IP" "$(curl ifconfig.me && printf " / " && curl icanhazip.com)" + prin "Weather" "$(timeout .4s curl --max-time 0.3 'wttr.in/?0?q?T' | awk '/°(C|F)/ {printf $(NF-1) $(NF) " ("a")"} /,/ {a=$0}' || echo Timeout)" + prin "IP" "$(timeout .4s ( curl --max-time 0.3 ifconfig.me && printf " / " && curl icanhazip.com ) )" }