bt_connect now accepts an argument to pass to bluetoothctl
Allows to me to setup bindings for disconnecting or connecting a bluetooth device.
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
choice=$(bluetoothctl devices | sed 's/Device \([A-Z0-9:]*\) \(.*\)/\2\t\1/g' | dmenu -i -p "Device: " | sed 's/.*\t//')
|
||||
[ ! -z $choice ] && bluetoothctl connect $choice
|
||||
if [ ! -z $choice ]
|
||||
then
|
||||
bluetoothctl $1 $choice
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user