From f6695be0512a414d448fd14af90db5f9fa242dd0 Mon Sep 17 00:00:00 2001 From: TrudeEH Date: Wed, 19 Jun 2024 21:35:15 +0100 Subject: [PATCH] Add blue script to connect to bluetooth devices --- dotfiles/.local/bin/blue | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 dotfiles/.local/bin/blue diff --git a/dotfiles/.local/bin/blue b/dotfiles/.local/bin/blue new file mode 100755 index 00000000..dc0d3aae --- /dev/null +++ b/dotfiles/.local/bin/blue @@ -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