Adjust Screen Resolution Using Hot Keys

Inspired by the probably less than useful macro that I shared here earlier, I made this – at least to me – very useful macro.

The macro simply adjusts the screen resolution of the main display up or down, to next resolution that matches current frame rate and aspect ratio.

I am particularly pleased with having my hot keys set to Hyperkey + F1 and Hyperkey + F2, otherwise known as Decrease or Increase Screen Brightness. (If you like me have the F-key row set by default as hardware keys, then you'll have to press Globe + Hyperkey + F1 or F2)

Adjust Screen Resolution Using Hot Keys v1.1.kmmacros (11 KB)
(KM v11.0.3)

Macro Image

Edit:
17.04.2025 Updated macro to v1.1

Updated first post with v1.1 of the macro

There was a glitch where the For Each would return the last entry of the Screen Resolutions stack regardless of matching aspect ratio or not. Sometimes resulting in aspect ratio being changed.

Also added a Semaphore at the beginning making sure that multiple hot key taps are being correctly qued and executed, if trigger frequency is quicker than the macro can keep up with.

This is very handy, thank you for sharing! I had tried to automate this different ways in the past. Another similar and handy utility I have been using for about 15 years is https://www.madrau.com and allows you to assign keyboard shortcuts and resize and reposition your screens. They have kept up with updates for new Macs over the years, and I have also changed the desktop images with the AppleScript you can run with the keyboard shortcuts. I love that you have been able to mirror two screens with three displays (something you couldn't do until recently on Mac), and all this can be saved as presets."

1 Like