bluetooth selector
This commit is contained in:
parent
6d413b7c8d
commit
ff840b7dde
12
bin/btSelector
Executable file
12
bin/btSelector
Executable file
@ -0,0 +1,12 @@
|
||||
#!/usr/bin/sh
|
||||
|
||||
scan_first=$(echo -e "yes\nno" | dmenu -l 2)
|
||||
|
||||
if [[ ${scan_first} = 'yes' ]]; then
|
||||
bluetoothctl scan on &
|
||||
sleep 10 && kill $!
|
||||
fi
|
||||
|
||||
device=$(bluetoothctl devices | dmenu -l 15 | cut -d ' ' -f 2)
|
||||
|
||||
bluetoothctl connect ${device}
|
Loading…
Reference in New Issue
Block a user