From f77c7056f27c00179b26b39b40c78ad565aa2e20 Mon Sep 17 00:00:00 2001 From: Alexander Bocken Date: Sun, 4 Oct 2020 15:45:07 +0200 Subject: [PATCH] statusbar signals --- .local/bin/tools/ethvpn | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.local/bin/tools/ethvpn b/.local/bin/tools/ethvpn index 2e41b33..1c06515 100755 --- a/.local/bin/tools/ethvpn +++ b/.local/bin/tools/ethvpn @@ -2,7 +2,7 @@ user="abocken@student-net.ethz.ch" password_path="ETH/VPN" if [ "$1" = "status" ]; then - ping -c 2 -q webprint.ethz.ch > /dev/null && printf '🔬' + ping -c 2 -W 3 -q webprint.ethz.ch > /dev/null && printf '🔬' printf '\n' else if [ $(pgrep -c openconnect) -eq 0 ]; then @@ -15,4 +15,5 @@ else sudo pkill openconnect && notify-send "ETH VPN" "ETH VPN disconnected" fi fi + pkill -RTMIN+9 dwmblocks fi