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