Add timeout to conky ping indicator

This commit is contained in:
Talia 2022-01-31 21:26:35 +01:00
parent 7de5f862cb
commit 396fb9ac6e

View file

@ -13,8 +13,8 @@ ${color2}vpn:$color $alignr${execi 2 expressvpn status | grep -Po 'Not connected
#${color2}ip:$color $alignr${execi 2 ~/.bin/location} #${color2}ip:$color $alignr${execi 2 ~/.bin/location}
# #
${color3}Ping $hr ${color3}Ping $hr
${color2}Google: $color$alignr${execi 2 ping google.de -c 1 | grep -Po '(?<=time=).*'} ${color2}Google: $color$alignr${execi 2 timeout 1 ping google.de -c 1 | grep -Po '(?<=time=).*'}
${color2}Server: $color$alignr${execi 2 ping darkwiiplayer.com -c 1 | grep -Po '(?<=time=).*'} ${color2}Server: $color$alignr${execi 2 timeout 1 ping darkwiiplayer.com -c 1 | grep -Po '(?<=time=).*'}
# #
${color3}CPU $hr ${color3}CPU $hr
$color$cpu%$color2 CPU Usage $color$cpu%$color2 CPU Usage