i3-dotfiles/polybar/scripts/vpn.sh
2022-02-26 22:52:31 -06:00

9 lines
135 B
Bash
Executable file

#!/bin/sh
vpnName=$(nmcli con show --active | grep -i vpn | awk '{print $1}')
if [ -z $vpnName ]
then
echo ""
else
echo $vpnName
fi