dmenu-wifi/wifi

6 lines
238 B
Plaintext
Raw Permalink Normal View History

2022-08-13 22:19:16 +08:00
#!/bin/sh
bssid=$(nmcli -f BSSID,SSID,SIGNAL,RATE,BARS,SECURITY dev wifi list | sed -n '1!p' | dmenu -p "Select WiFi: " -l 20 | cut -d' ' -f1)
pass=$(echo "" | dmenu -p "Enter password: ")
nmcli device wifi connect $bssid password $pass