Automate HazeOver to Create
Your Perfect Focused Workflow

HazeOver state and settings can be controlled with Shortcuts app in macOS Monterey (or AppleScript on any macOS version). Combine that with other apps and system settings to set up your perfect environment. For example, you can enable HazeOver dimming, set Dark mode and Do Not Disturb with a single keyboard shortcut.

Other ideas: hide the Dock and the menu bar, set HazeOver intensity or color and launch your productivity app. All in one step after a bit of initial set up.

Try in Shortcuts — Requires macOS Monterey

shortcuts How to Use Shortcuts App on macOS Monterey

To run the workflow with a keyboard shortcut or from the menu bar:

Actions supported by HazeOver:

Set HazeOver State
Toggle HazeOver dimming, turn it on or off.

Get Settings
Gets the dimming state, intensity and other HazeOver settings. You can use individual values as input or condition for other actions in your workflow.

Set Color
Sets the dimming color using hex value. For example, 000000 for black or FF0000 for red.

Set Animation
Sets the dimming animation duration between 0 and 5 seconds.

Set Intensity
Sets the dimming intensity between 0 (transparent) and 100 (opaque).

Set Highlight Mode
Sets the highlight mode for multiple windows of the same app. Either one or all front windows of the active app can be highlighted.

Set Secondary Displays Mode
Sets the highlight mode for windows on secondary screens. HazeOver can either dim everything on secondary displays or highlight a window on each one.

Update Dimming
Use this when some other action or app reorders windows, but the dimming state does not get updated. Should only be necessary in rare cases with third-party apps.

AppleScript How to Use AppleScript on Any macOS Version

tell app "HazeOver" to set enabled to not enabled

HazeOver state should change.

To find out all supported properties you need to add HazeOver app to Script Editor library:

Available scripting properties can be found in “HazeOver Suite” > “application” section. These can later be found by selecting Window > Library menu, then HazeOver app in the list.

Writing and launching AppleScript files is a bit more involved. Use ActionShortcuts app to run any scripts using the menu bar or keyboard shortcuts. It includes some sample scripts to get you started.

Contact me if you need help coming up with or setting up HazeOver automation.

Free Trial
SetappTry with Setapp
Download on the Mac App Store