This commit is contained in:
2018-12-16 13:06:16 +01:00
parent 68f8e15b94
commit 6b730ce230
6 changed files with 83 additions and 42 deletions

View File

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