summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxyz <gky44px1999@gmail.com>2022-06-25 23:35:41 -0700
committerxyz <gky44px1999@gmail.com>2022-06-25 23:35:41 -0700
commit89d4df61882f3f8b85c46f283afd350ac559de08 (patch)
tree1eeb006b106511aab74d96b60594971731570c41
parentf12cb5f85a6a9523b29619665a985f5ffe6fb91f (diff)
sbar update_net monitor wireguard vpn also
-rwxr-xr-xhome/xyz/.local/bin/sbar2
1 files changed, 1 insertions, 1 deletions
diff --git a/home/xyz/.local/bin/sbar b/home/xyz/.local/bin/sbar
index 62504d13..f55a0445 100755
--- a/home/xyz/.local/bin/sbar
+++ b/home/xyz/.local/bin/sbar
@@ -15,7 +15,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)"
- vpn="$(if nmcli -t --fields type,state device | grep -q 'tun:connected'; then echo 1; else echo 0; fi)"
+ vpn="$(if nmcli -t --fields type,state device | grep -q '\(tun\|wireguard\):connected'; then echo 1; else echo 0; fi)"
}
update_vol () {