When reconnecting pairing and connecting is run (unpair in beginning just in case) When disconnecting from currently connected device unpairing is done to avoid reconnect back and connection issues with other device. P.S the script sometimes hangs when trying to connect, in such case I turn off and back on the keyboard and run again.Įxplanation: first it is checked if we are connected if we are we disconnect and if not reconnect. Now, whenever you want to switch between devices run the script first on the device currently connected to keyboard and then run on the other device and viola! keyboard now connected to other device. Copy script to second device, make sure to update the blueutil_folder correctly.Enter script (notice my shell is zsh, so if yours is different either install it or update command to fit your shell, such as 'if' statement of parenthesis):.In automator Create new automation of type 'Application'.Run blueutil -paired and identify device address, this is the device id used below, just substitute '-' with ':' (e.g 40:e6:4b:8d:52:12).Install blue util (can be done via 'bower install blueutil').This works by installing blueutil and creating an identical automator script on both devices: ![]() ![]() ![]() Well, after much playing around I was able to find something that is pretty close.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |