zbaylin / rofi-wifi-menu

a bash script using nmcli and rofi to make a wifi menu in i3/openbox/bspwm
410 stars 35 forks source link

rofi-wifi-menu

A wifi menu for i3/openbox/etc. written in bash. Uses rofi and nmcli.

Table of Contents

Screenshots

Desktop

Desktop

Default

Default

Manual Entry

Manual Entry

Toggle On

Toggle On

Requirements

Optional

Installation

Configuration

rofi-wifi-menu has an example configuration file in the repository. It will run without it, but will warn you if it does not exist.

To configure rofi-wifi-menu, first cd into the directory it is installed into. Then edit the file config.example. It should contain the following variables:

position

position can be configured where the number represents the position on this screen in this way

Screen Left Right Center
Top 1 2 3
Center 8 0 4
Bottom 7 6 5

y-offset

y-offset is measured in pixels. A positive value moves the window downward, while a negative value moves it upward.

x-offset

x-offset is measured in pixels. A positive value move the window rightward, while a negative value moves it leftward.

fields

fields choose what is displayed by the menu. The available fields are as follows:

NAME,SSID,SSID-HEX,BSSID,MODE,CHAN,FREQ,RATE,SIGNAL,BARS,SECURITY,WPA-FLAGS,RSN-FLAGS,DEVICE,ACTIVE,IN-USE,DBUS-PATH

ToDo

✔️ Add ability to manually specify SSID

✔️ Add ability to configure the script externally

✔️ Use rofi highlighting

❌ Add more forms of security (PEAP, etc.)

❌ Remove duplicate APs