The tool to switch Magic Trackpad connections between multiple Mac devices
- When clamshell mode is enabled...
- Unpair Magic Trackpad
- Power off the bluetooth module
- Sleep system
- When the system wakes up from sleep...
- Power on the bluetooth module
- Pair Magic Trackpad
Install magic-trackpad-switcher
.
brew install mizdra/tap/magic-trackpad-switcher
Then, add the device ID of your Magic Trackpad to configuration file:
# Check the device ID of your Magic Trackpad
blueutil --paired
# Add the device ID of your Magic Trackpad to configuration file
mkdir -p ~/.config/magic-trackpad-switcher
echo "xx-xx-xx-xx-xx-xx" > ~/.config/magic-trackpad-switcher/TRACKPAD_DEVICE_ID
Finally, start magic-trackpad-switcher
service.
brew services start mizdra/tap/magic-trackpad-switcher
brew services stop mizdra/tap/magic-trackpad-switcher
brew uninstall mizdra/tap/magic-trackpad-switcher
rm -rf ~/.config/magic-trackpad-switcher
brew upgrade
brew services restart mizdra/tap/magic-trackpad-switcher
git clone [email protected]:mizdra/magic-trackpad-switcher.git
swift run
tail -F $(brew --prefix)/var/log/magic-trackpad-switcher.log
tail -F $(brew --prefix)/var/log/magic-trackpad-switcher.error.log