8 lines
267 B
Bash
Executable File
8 lines
267 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -eo pipefail
|
|
|
|
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"
|