Files
dotfiles/dotfiles/.local/bin/blue

14 lines
343 B
Plaintext
Executable File

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