I have two MacBook Pros running MacOS Catalina. On my desk, I have an external monitor and a Magic Keyboard & Mouse. I'd like to easily switch the keyboard & mouse between the two laptops when I connect them to the external display. Right now, I have to re-pair the keyboard and mouse everytime I want to switch. Is there a way to automatically have the keyboard/mouse pair to whichever computer is awake and running?

  • This can be done with applescript, first detect when the computer wakes up and then connect to bluetooth device. You'll find examples for both here and in superuser. Another solution would be using third party like barrier(on GitHub) that will allow you to share a mouse and a keyboard between your MacBooks, this means that the mouse and keyboard will always be connected to one macbook (for barrier, they need to be on the same network)
    – enzo
    Feb 27, 2020 at 16:01

1 Answer 1


Update: I found AirBuddy (https://v2.airbuddy.app/) which has this exact functionality.

  • Please add some details which show how the application helps to solve the problem.
    – nohillside
    Oct 25, 2021 at 5:45

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .