Compare commits
1 commit
b39ab134e7
...
25e865a56f
Author | SHA1 | Date | |
---|---|---|---|
Dmitry Voronin | 25e865a56f |
|
@ -26,26 +26,23 @@
|
||||||
fi
|
fi
|
||||||
|
|
||||||
for net in ''${_vpns[@]}; do
|
for net in ''${_vpns[@]}; do
|
||||||
[[ "''${networks}" = "" ]] || networks+="\\\n"
|
networks+=" ''${net}\\\n"
|
||||||
networks+=" ''${net}"
|
|
||||||
done
|
done
|
||||||
|
|
||||||
for net in ''${_ethernets[@]}; do
|
for net in ''${_ethernets[@]}; do
|
||||||
[[ "''${networks}" = "" ]] || networks+="\\\n"
|
networks+=" ''${net}\\\n"
|
||||||
networks+=" ''${net}"
|
|
||||||
done
|
done
|
||||||
|
|
||||||
for net in ''${_wifis[@]}; do
|
for net in ''${_wifis[@]}; do
|
||||||
[[ "''${networks}" = "" ]] || networks+="\\\n"
|
networks+=" ''${net}\\\n"
|
||||||
networks+=" ''${net}"
|
|
||||||
done
|
done
|
||||||
|
|
||||||
for bt in ''${_bts[@]}; do
|
for bt in ''${_bts[@]}; do
|
||||||
[[ "''${networks}" = "" ]] || networks+="\\\n"
|
networks+=" ''${bt}\\\n"
|
||||||
networks+=" ''${bt}"
|
|
||||||
done
|
done
|
||||||
|
|
||||||
printf "{\"text\": \"''${icon}\", \"tooltip\": \"''${networks[@]}\", \"class\": \"''${class}\"}\n"
|
networks=''${networks%\\\n}
|
||||||
|
printf "{\"text\": \"''${icon}\", \"tooltip\": \"''${networks}\", \"class\": \"''${class}\"}\n"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Toggle network.
|
# Toggle network.
|
||||||
|
|
Loading…
Reference in a new issue