diff --git a/.config/polybar/scripts/vpn.sh b/.config/polybar/scripts/vpn.sh index ec8708e..e453d9b 100755 --- a/.config/polybar/scripts/vpn.sh +++ b/.config/polybar/scripts/vpn.sh @@ -2,6 +2,9 @@ connection="$(nmcli con show --active | awk '$3 ~ /^(vpn|tun|wireguard)$/ { print $1 }')" if [ -n "$connection" ]; then + if [ "$connection" = "wg-mullvad" ]; then + connection="$(mullvad status | awk '{ print $3}')" + fi echo "VPN: $connection" exit 0 fi