Add blue script to connect to bluetooth devices
This commit is contained in:
13
dotfiles/.local/bin/blue
Executable file
13
dotfiles/.local/bin/blue
Executable file
@@ -0,0 +1,13 @@
|
||||
echo
|
||||
#echo "Ctrl + C to stop scanning."
|
||||
echo
|
||||
hcitool scan # to get the MAC address of your device
|
||||
bluetoothctl agent on
|
||||
#bluetoothctl scan on | grep -E "NEW"
|
||||
#bluetoothctl scan off &> /dev/null
|
||||
echo
|
||||
read -p "Mac address: " MAC_ADDRESS
|
||||
bluetoothctl pair $MAC_ADDRESS
|
||||
echo
|
||||
read -p "Press ENTER after pairing."
|
||||
bluetoothctl connect $MAC_ADDRESS
|
||||
Reference in New Issue
Block a user