summaryrefslogtreecommitdiff
path: root/sh
diff options
context:
space:
mode:
Diffstat (limited to 'sh')
-rwxr-xr-xsh/sbar1
-rwxr-xr-xsh/vpn2
2 files changed, 2 insertions, 1 deletions
diff --git a/sh/sbar b/sh/sbar
index 9bdc8b8..e144511 100755
--- a/sh/sbar
+++ b/sh/sbar
@@ -16,6 +16,7 @@ update_time () {
update_net () {
net="$(if nmcli -t --fields type,state device | grep -q '^\(ethernet\|wifi\):connected$'; then echo 1; else echo 0; fi)"
case "$(nmcli -t --fields device,state device)" in
+ *wg_aa:connected*) wg=A;;
*wg_ia:connected*) wg=I;;
*wg_mydefault:connected*) wg=D;;
*wg_studio:connected*) wg=S;;
diff --git a/sh/vpn b/sh/vpn
index b0f26a8..497b20d 100755
--- a/sh/vpn
+++ b/sh/vpn
@@ -2,7 +2,7 @@
# toggle VPN
down_not_mydefault () {
- for v in wg_studio wg_ia; do
+ for v in wg_studio wg_ia wg_aa; do
nmcli connection down "$v"
done
}