This is a simple wifi network tool with a few functions to simplify your life as much as it can, when it comes to managing wifi networks in a linux shell.
For idiots like me, it can be extremely torturing to have to deal with stuff like this. It comes in handy when running a window manager like i3 on a laptop.. without ethernet.. it can be a pain in the ass to manage your connections without a built in out-of-the-box network manager that other systems may have, like ones running KDE, GNOME, or XFCE.
- nmcli
- tput
You probably have these installed on your linux system anyways lol
Literally just curl, wget, or download net.sh and add it to your path, wherever that may be.
wget:
wget https://raw.githubusercontent.com/notmax6677/net.sh/main/net.sh
curl:
curl https://raw.githubusercontent.com/notmax6677/net.sh/main/net.sh -o net.sh
You will probably need to make it an executable too:
chmod +x net.sh
For the sake of not having to write the extension every time you use the program, you can just remove it:
mv PATH_TO_FOLDER/net.sh PATH_TO_FOLDER/net
Now, we can finally get our hands on this and start using it.
./net connect NETWORK_NAME PASSWORD
./net connect NETWORK_NAME
./net disconnect NETWORK_NAME
And finally...
A nice bonus from this is that NMCLI will actually print an asterisk next to the connection that you are currently connected to, if there is one.
./net list
And that's all, go crazy with this lol