dotfiles/.local/bin/statusbar/sb-vpnstatus

8 lines
175 B
Plaintext
Raw Normal View History

2020-11-07 23:43:31 +01:00
#!/bin/bash
2024-09-09 15:17:43 +02:00
pgrep openconnect > /dev/null && if ping -c 1 -W 1 -q webprint.ethz.ch > /dev/null;
2020-11-07 23:43:31 +01:00
then
printf '🔬'
fi
pgrep openvpn > /dev/null && printf '🛡'
printf '\n'