statusbar signals

This commit is contained in:
Alexander Bocken 2020-10-04 15:45:07 +02:00
parent 7c75e32651
commit f77c7056f2
Signed by: Alexander
GPG Key ID: 1D237BE83F9B05E8

View File

@ -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