Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dzuelke/aec58a536a3f21054cc977e4abe68267 to your computer and use it in GitHub Desktop.
Save dzuelke/aec58a536a3f21054cc977e4abe68267 to your computer and use it in GitHub Desktop.
Mac Automator workflow to toggle screen mirroring on 13" MBP so that internal LCD is always 1440x900 retina
on run {input, parameters}
tell application "Display Menu"
toggle mirroring
select resolution "1440 x 900 Retina" on display "Color LCD"
end tell
return input
end run
@dzuelke
Copy link
Author

dzuelke commented Feb 14, 2018

When switching to another input on an external screen that you're normally using to extend desktops, you may want to set the MBP to mirroring to continue using it, but doing that switches the Color LCD to the resolution of the external screen, which in 4K retina mode makes things... small.

This fix requires Display Menu with the Pro features unlocked for scripting access.

Create Quick Action in Automator under "Utilities", "Run AppleScript". Make sure "Service receives no input".

Then in System Preferences, "Keyboard", "Shortcuts", "Services", give it e.g. Fn+Cmd+F1 as a shortcut, or, on a Mac with Touch Bar, you can customize the Touch Bar and e.g. in expanded view add the Quick Actions menu item, then it'll show up there.

@Paul-B
Copy link

Paul-B commented Aug 31, 2019

Just what I was looking for, thanks!

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