wifi 261 B

123456
  1. #!/bin/sh
  2. bssid=$(nmcli -f BSSID,SSID,SIGNAL,RATE,BARS,SECURITY dev wifi list | sed -n '1!p' | dmenu -p "Выбирите WiFi: " -l 20 | cut -d' ' -f1)
  3. pass=$(echo "" | dmenu -p "ВвидитИ пароль: ")
  4. nmcli device wifi connect $bssid password $pass