Krolyxon
Auto
Light
Dark
Summary
Tree
Log
Refs
Find
Commit
a27848f
Branches
master
Refs →
dotfiles-x11
/
.local
/
bin
/
connect_wifi
5 lines · 217 B · Bourne Again Shell (bash)
Raw
Blame
History
Download
1
#!/bin/sh
2
3
bssid
=$(nmcli device wifi list | sed -n '1!p' | cut -b 9- | dmenu -p "Select wifi:" -l 20 | cut -d' ' -f1)
4
pass
=$(
echo
"" | dmenu -P -p "Enter Password: ")
5
nmcli device wifi connect
$
bssid password
$
pass