dotfiles/.local/bin/statusbar/sb-vpnstatus
2023-10-18 19:33:25 +02:00

8 lines
174 B
Bash
Executable File

#!/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'