diff options
| author | Xiao Pan <xyz@flylightning.xyz> | 2025-01-11 21:03:52 -0800 | 
|---|---|---|
| committer | Xiao Pan <xyz@flylightning.xyz> | 2025-01-11 21:03:52 -0800 | 
| commit | c1b7b022611bca8c470c2ebc3678675a436390f3 (patch) | |
| tree | fcf48432ae3ef4dce87a8a0bcc9b2ba197105fc2 /sh/sbar | |
| parent | 80d5c54225e115ec0f260c253f14db25fbc7d117 (diff) | |
wireguard switch to use cfg repo branches as names
Diffstat (limited to 'sh/sbar')
| -rwxr-xr-x | sh/sbar | 10 | 
1 files changed, 1 insertions, 9 deletions
| @@ -15,15 +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)" -	case "$(nmcli -t --fields device,state device)" in -		*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 +	wg="$(nmcli -t --fields device,state device | awk -F_ '/wg_.*:connected/{print substr($2,0,2)}')"  }  update_vol () {  | 
