statusbar signals
This commit is contained in:
parent
7c75e32651
commit
f77c7056f2
@ -2,7 +2,7 @@
|
|||||||
user="abocken@student-net.ethz.ch"
|
user="abocken@student-net.ethz.ch"
|
||||||
password_path="ETH/VPN"
|
password_path="ETH/VPN"
|
||||||
if [ "$1" = "status" ]; then
|
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'
|
printf '\n'
|
||||||
else
|
else
|
||||||
if [ $(pgrep -c openconnect) -eq 0 ]; then
|
if [ $(pgrep -c openconnect) -eq 0 ]; then
|
||||||
@ -15,4 +15,5 @@ else
|
|||||||
sudo pkill openconnect && notify-send "ETH VPN" "ETH VPN disconnected"
|
sudo pkill openconnect && notify-send "ETH VPN" "ETH VPN disconnected"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
pkill -RTMIN+9 dwmblocks
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user