I use different screen resolutions based on the activity I'm doing during the day.
For example when I'm coding I prefer to have more space available.
Is it possible to associate a keyboard shortcut to change the scaled display resolution ?
(see the attached screenshot)
macOS – Changing Display Resolution via Keyboard Shortcuts
applescriptmacmacos
Related Question
- MacOS – Change Keyboard Layout on Lock Screen
- MacOS – How to set a screen resolution other than what is displayed in the scaled list
- MacOS – Visual confirmation of keyboard layout change in OS X Yosemite
- macOS – Adjusting UI Element Scaling for External Monitor
- MacOS – Changing Screen Resolution Using AppleScript
- MacOS – Missing scaled resolution for external 4K display on MacBook 2016
- MacOS – DELL WD15 DOCK with Macbook Pro 2018 – max resolution issue
Best Answer
Yes you totally can achieve this without running additional apps. On my system I created two different scripts. One script for adjusting the display resolution higher and one adjusting display resolution lower. On my system I just enabled both scripts as dictation commands but if you create a new Service through Automator, you can assign keyboard shortcuts to those services..
First, here are the two scripts I started with.
This one is for making the display resolution higher: if my display resolution is already at the default position
Running that script will result in this:
This next script is for making the display resolution lower: if my display resolution is not set at the default setting
Once I made sure both scripts work correctly, I then opened up Automator and created a new service for the display resolution higher and added the appropriate script as shown in the following image. I saved this file as rez_higher.workflow
From here, I opened up system preferences/keyboard/shortcuts/services. I located that new service I created and assigned it a keyboard shortcut
After this, just follow the same procedures to create a new workflow and service for the display resolution lower