Hacker News new | ask | show | jobs
by pizza234 3369 days ago
OK, well, this had to be released before or later ;-)

Here you can find a script which automates the connection to bluetooth headphones, executing (in ruby) the steps outlined above, using the bluez commandline tool (including: retry until the connection is established...):

https://gist.github.com/anonymous/8f6058df9a879292bc8dbd3aaf...

As usual, you need to give execution permissions, or pass it to the ruby interpreter. It's designed to executed via terminal, call it from GUI has undefined behavior.