config/neofetch/config-short: timeout everything
This commit is contained in:
parent
7d0807acbd
commit
6b37693904
|
@ -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 ) )"
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue