polybar:vpn: Support wireguard connections

This commit is contained in:
2022-12-26 23:54:27 +01:00
parent aa28483381
commit 92589d5423

View File

@@ -1,6 +1,6 @@
#!/bin/sh
connection="$(nmcli con show --active | awk '$3 ~ /^(vpn|tun)$/ { print $1 }')"
connection="$(nmcli con show --active | awk '$3 ~ /^(vpn|tun|wireguard)$/ { print $1 }')"
if [ -n "$connection" ]; then
echo "VPN: $connection"
exit 0