# then, temporarily turn off bluetooth so the macbook can the # Enter target-display mode with a macbook connected by cable Or open bluetooth preferences and find each device and "connect" (using the macbook's built-in keyboard and trackpad). If bluetooth is enabled on your macbook, and it already knows your keyboard and trackpad, then it will connect to them. Then on your imac, in a term window, run target-display-mode as a command. On your imac, put the script below in a file ~/bin/target-display-mode, and run `chmod +x ~/bin/target-display-mode Whenever you want to exit target display mode, just turn off bluetooth on my macbook and wait a few seconds for the imac to reconnect to the keyboard and trackpad. If you want to also use a single bluetooth keyboard and trackpad, then you can switch them over to the macbook by using blueutil to temporarily disable bluetooth on the imac so the macbook can grab the keyboard and trackpad. osascript -e 'tell application "System Events" to key code 144 using command down'īut it won't do it automatically when you plug in the cable. Actually you can do this pretty easily without a program, using osascript.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |