Add blue script to connect to bluetooth devices

This commit is contained in:
2024-06-19 21:35:15 +01:00
parent ced847b53a
commit 36f5ccba1e

13
dotfiles/.local/bin/blue Executable file
View 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