https://github.com/notmax6677/net.sh
Simple wifi management script
https://github.com/notmax6677/net.sh
bash linux wifi
Last synced: about 2 months ago
JSON representation
Simple wifi management script
- Host: GitHub
- URL: https://github.com/notmax6677/net.sh
- Owner: notmax6677
- Created: 2022-04-05T10:34:26.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-04-05T14:19:45.000Z (about 4 years ago)
- Last Synced: 2024-12-28T11:41:52.474Z (over 1 year ago)
- Topics: bash, linux, wifi
- Language: Shell
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# net.sh
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.
## Prerequisites
* nmcli
* tput
You probably have these installed on your linux system anyways lol
## Installation
Literally just curl, wget, or download net.sh and add it to your path, wherever that may be.
wget:
```sh
wget https://raw.githubusercontent.com/notmax6677/net.sh/main/net.sh
```
curl:
```sh
curl https://raw.githubusercontent.com/notmax6677/net.sh/main/net.sh -o net.sh
```
You will probably need to make it an executable too:
```sh
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:
```sh
mv PATH_TO_FOLDER/net.sh PATH_TO_FOLDER/net
```
## Usage
Now, we can finally get our hands on this and start using it.
##### Connecting to a network (with password)
```sh
./net connect NETWORK_NAME PASSWORD
```
#### Connecting to a network (without password)
```sh
./net connect NETWORK_NAME
```
#### Disconnecting from a network
```sh
./net disconnect NETWORK_NAME
```
And finally...
#### List nearby/available networks
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.
```sh
./net list
```
And that's all, go crazy with this lol