Skip to content

Instantly share code, notes, and snippets.

@clearxlate
Created December 7, 2020 10:00
Show Gist options
  • Save clearxlate/6aa612f64c2c660218e9c6962dcd9ca6 to your computer and use it in GitHub Desktop.
Save clearxlate/6aa612f64c2c660218e9c6962dcd9ca6 to your computer and use it in GitHub Desktop.
applescript to switch target display mode on headful imac
#!/bin/bash
osascript -e 'tell application "System Events" to key code 144 using command down delay'
@clearxlate
Copy link
Author

The first time (or two) I had to allow it from the console, but after that works via ssh.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment