#!/bin/sh if [ "$(nmcli | grep 'VPN connection')" ]; then echo "%{A1:nmcli con down $(nmcli | grep "VPN connection" | cut -d " " -f1):}旅%{A}" else echo "%{A1:~/bin/vpnup:}%{F#404040}旅%{F-} %{A}" fi