externalized vpn status script

This commit is contained in:
2020-11-07 23:43:31 +01:00
parent d80fd57cd4
commit eeb2cd9e18
2 changed files with 19 additions and 22 deletions

7
.local/bin/tools/vpnstatus Executable file
View File

@ -0,0 +1,7 @@
#!/bin/bash
pgrep openconnect > /dev/null && if ping -c 1 -W 1 -q webprint.ethz.ch > /dev/null
then
printf '🔬'
fi
pgrep openvpn > /dev/null && printf '🛡'
printf '\n'