7 lines
255 B
Bash
Executable File
7 lines
255 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -ue
|
|
|
|
bssid="$(nmcli -f BSSID,SSID,SIGNAL,RATE,BARS,SECURITY dev wifi list | sed -n '1!p' | rofi -dmenu -p "WiFi: " -l 20 | cut -d' ' -f1)"
|
|
pass="$(echo "" | rofi -dmenu -p "Password: ")"
|
|
nmcli device wifi connect "$bssid" "password" "$pass" |