1
0
Fork 0
dotfiles/files/.config/polybar/openvpn.bash

11 lines
189 B
Bash
Raw Normal View History

2018-03-10 04:04:29 +00:00
#!/bin/bash
2018-09-11 19:00:53 +00:00
if which openvpn &>/dev/null; then
2018-09-11 18:53:54 +00:00
if ! pgrep "openvpn" &>/dev/null || ! ip link | grep -q tun; then
echo "$ICO_VPN_OFF "
else
echo "$ICO_VPN_ON "
fi
2018-03-10 04:04:29 +00:00
fi
2018-09-11 18:53:54 +00:00