Create wifi

This commit is contained in:
BitHeaven 2022-08-13 19:19:16 +05:00 committed by GitHub
parent 5ed467e1c0
commit 36ec0695da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

5
wifi Normal file
View File

@ -0,0 +1,5 @@
#!/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