vegardinho / alfred_bluetooth_controller

Alfred workflow for managing bluetooth settings and -connections
MIT License
95 stars 7 forks source link

Custom bluetooth names #3

Closed a-rock-lobster closed 3 years ago

a-rock-lobster commented 3 years ago

Firstly, workflow is super. Thanks for sharing.

I have a suggested (subjective) improvement: I make use of the ability to customise bluetooth device names in system settings and it would be nice if this was reflected in the workflow. For example, when one has a lot of saved devices it would help quickly searching.

Cheers,

vegardinho commented 3 years ago

Thanks! Glad to hear that you enjoy it!

That's a valid suggestion. It seems blueutil doesn't reflect name changes, my guess is that they are only stored locally rather than on-device.

I would have to look into it, and I probably won't have too much time to do so before long. If you want to have a look at it yourself (or anyone else out there?), I would be happy to implement the changes! Some documentation as to where the custom names are stored/how one can retrieve them would also go a long way to push this upwards on my agenda.

a-rock-lobster commented 3 years ago

I would love to help but I have no skills in that department. Just an ideas guy.

Spent a bit of time looking for where the custom names are stored, but no luck yet. All I can say is that custom names are indeed only stored locally.

vegardinho commented 3 years ago

I see. Maybe I'll give it a try to see if there is an easy fix.

Do give me a heads-up if you stumble over something useful.

a-rock-lobster commented 3 years ago

A record of bluetooth device custom names are within: /Library/Preferences/com.apple.Bluetooth.plist

vegardinho commented 3 years ago

Now implemented in 37672da3ae175d58503d9742224c5fe7d743b865 / release v2.0!

I have read somewhere that all names may not be stored in the file you are referencing (and which I use), and that some may reside locally, on-device. Haven't double checked this, but my solution probably isn't entirely bulletproof.

a-rock-lobster commented 3 years ago

Cool stuff!