Last active
August 10, 2023 16:46
-
-
Save ajgappmark/adb507bbb5ee97ed762c018cc992c58b to your computer and use it in GitHub Desktop.
bluetooth-connect-nakamichi
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
NAKAMICHI_AUDIO="XX:XX:XX:XX:XX:XX" | |
timeout 10s bluetoothctl scan on && sleep 2 \ | |
bluetoothctl remove $NAKAMICHI_AUDIO && sleep 4 && \ | |
bluetoothctl trust $NAKAMICHI_AUDIO; sleep 4 && \ | |
bluetoothctl pair $NAKAMICHI_AUDIO; sleep 2 && \ | |
bluetoothctl connect $NAKAMICHI_AUDIO && echo "Bluetooth connected" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment