summaryrefslogblamecommitdiff
path: root/dmenu-ssid.sh
blob: fdffc026124fbffbcd98ec6c5d171dbb334551e5 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12











                                                      
#!/bin/sh

prompt=$(ifconfig | egrep -o '"(.*)"')
ssids=$(ifconfig wlan0 scan | cut -c 1-32 | awk 'NF' )



ssid=$(
dmenu -c -l 10 -p "$prompt" << EOF
$ssids
EOF
)