Hi everyone 👋
Recently I bought a bluetooth speaker and I noticed that when my mac goes to sleep, the bluetooth connection is lost and I have to reconnect to the speaker every time I wake up my mac.
I tried to searching for a solution but I couldn't find anything that worked for me. So I decided to write my own.
Here is the result:
https://github.com/MendyLanda/mac-blue-keep-alive
This script will keep a bluetooth connection alive by checking if the device is connected every X minutes and if not, it will try to connect to it.
I'm not a bash expert, so if you have any suggestions, please let me know.
I hope this will help someone else.
Thanks!
Please star this repo if you found it useful ⭐️. I need a dose of motivation to keep going 😅
Recently I bought a bluetooth speaker and I noticed that when my mac goes to sleep, the bluetooth connection is lost and I have to reconnect to the speaker every time I wake up my mac.
I tried to searching for a solution but I couldn't find anything that worked for me. So I decided to write my own.
Here is the result:
https://github.com/MendyLanda/mac-blue-keep-alive
This script will keep a bluetooth connection alive by checking if the device is connected every X minutes and if not, it will try to connect to it.
I'm not a bash expert, so if you have any suggestions, please let me know.
I hope this will help someone else.
Thanks!
Please star this repo if you found it useful ⭐️. I need a dose of motivation to keep going 😅