diff --git a/scripts/nm-vpn b/scripts/nm-vpn index 7b85345..bf5e8da 100755 --- a/scripts/nm-vpn +++ b/scripts/nm-vpn @@ -1,7 +1,7 @@ #!/bin/bash CONNECTION=$(LC_ALL=C nmcli -t connection show --active | awk -F ':' ' -/wg0|tun0/{vpn="ON"}; {if(/wireguard|vpn/) {vpn_name=$1} else if (/tun0/){tun_name=$1}} +/wg0|tun0|tap0/{vpn="ON"}; {if(/wireguard|vpn/) {vpn_name=$1} else if (/tun0/){tun_name=$1} else if (/tap0/){tun_name=$1}} END{if ( (vpn) && (vpn_name)) {printf("%s", vpn_name)} else if( (vpn) && (tun_name)) {printf("%s", tun_name)}}') LABEL_COLOR=${vpn_label_color:-$(xrescat i3xrocks.label.color)}