summaryrefslogtreecommitdiff
path: root/sh/sbar
diff options
context:
space:
mode:
Diffstat (limited to 'sh/sbar')
-rwxr-xr-xsh/sbar11
1 files changed, 6 insertions, 5 deletions
diff --git a/sh/sbar b/sh/sbar
index b378619..9614b6a 100755
--- a/sh/sbar
+++ b/sh/sbar
@@ -16,11 +16,12 @@ 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_ca:connected*) wg=C;;
- *wg_ia:connected*) wg=I;;
- *wg_mydefault:connected*) wg=D;;
- *wg_studio:connected*) wg=S;;
+ *wg_aa:connected*) wg=aa;;
+ *wg_ca:connected*) wg=ca;;
+ *wg_ia:connected*) wg=ia;;
+ *wg_ib:connected*) wg=ib;;
+ *wg_mydefault:connected*) wg=1;;
+ *wg_studio:connected*) wg=st;;
*) wg=0;;
esac
}