config/neofetch/config-short: timeout everything

This commit is contained in:
xeruf 2022-03-24 11:34:28 +01:00
parent 7d0807acbd
commit 6b37693904
1 changed files with 2 additions and 2 deletions

View File

@ -9,8 +9,8 @@ print_info() {
info "Host" model info "Host" model
info "Uptime" uptime info "Uptime" uptime
info "Memory" memory 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 "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" "$(curl ifconfig.me && printf " / " && curl icanhazip.com)" prin "IP" "$(timeout .4s ( curl --max-time 0.3 ifconfig.me && printf " / " && curl icanhazip.com ) )"
} }