From b489fdbe4bdaf36ebc9c154cc969c1ea1f6a9133 Mon Sep 17 00:00:00 2001 From: Julian Prein Date: Mon, 13 Feb 2023 16:39:04 +0100 Subject: [PATCH] polybar:vpn: Parse mullvad status --- .config/polybar/scripts/vpn.sh | 3 +++ 1 file changed, 3 insertions(+) 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