summaryrefslogtreecommitdiff
path: root/sh
diff options
context:
space:
mode:
authorXiao Pan <gky44px1999@gmail.com>2024-03-05 04:08:01 -0800
committerXiao Pan <gky44px1999@gmail.com>2024-03-05 04:08:01 -0800
commit201fe0d4adcf92049b920c1abd339e6507e25397 (patch)
treed293682390633db64f22d0a20a5c5b522a6954ae /sh
parent71965ce5113448945f4cc9c47a4c60d7c98c9d89 (diff)
feat: sbar wg add ia
Diffstat (limited to 'sh')
-rwxr-xr-xsh/sbar1
1 files changed, 1 insertions, 0 deletions
diff --git a/sh/sbar b/sh/sbar
index be63b44..d0125ec 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_ia:connected*) vpn=I;;
*wg_ka:connected*) vpn=K;;
*wg_studio:connected*) vpn=S;;
*) vpn=0;;