Automate HazeOver to Create Your Perfect Focused Workflow
HazeOver dimming state and settings can be read, controlled, and automated with Shortcuts app, Automations, Focus Filters, third-party tools, and AppleScript. Combine that with other apps, conditions, and system settings to set up your perfect environment.
For example, a keyboard shortcut or some automated event can turn on HazeOver dimming, Dark Mode, and Do Not Disturb for you.
Other ideas: hide the Dock and menu bar, set HazeOver intensity or color, and open your productivity app, all in one step after a bit of initial setup.
The Shortcuts app lets you combine multiple steps across apps into a single action. HazeOver’s dedicated actions let you control dimming, intensity, and display modes as part of any workflow. Run them from a keyboard shortcut, Siri, Spotlight, the menu bar, Control Center, or automate them. Spotlight actions, Control Center controls, and automations need macOS Tahoe 26 or later.
To create a shortcut:
Open the Shortcuts app and click All Shortcuts in the sidebar
Click + in the toolbar (or choose File > New Shortcut)
In the Action Library on the right, click HazeOver under Apps to reveal its actions You can also type to search for HazeOver or a specific action name
Double-click or drag actions into the shortcut editor
Click ▶ Run to try it out, or set up one of the following:
Name the shortcut a convenient phrase, then say it to Siri and it will run
Click ⓘ (or choose View > Show Shortcut Details), click Add Keyboard Shortcut, then press a key combination
HazeOver actions also work directly in Spotlight, no shortcut required:
Open Spotlight and search for HazeOver or an action name like Set Dimming Intensity Press Command-3 to narrow your search to just actions
Click Add quick keys next to the action, type a short code like hzo, and press Return
Run the action by typing the quick key in Spotlight and pressing Return
You can also run shortcuts from Control Center or the menu bar:
Click Control Center in the menu bar, then click Edit Controls
Click Shortcuts on the left
Click Run Shortcut and choose Add to Control Center or Add to Menu Bar, or drag it where you want it
Click Choose, pick a shortcut, then click Done
Click Done at the bottom of the gallery
Add multiple controls for different intensities or modes.
Actions Supported by HazeOver
Set HazeOver Dimming State: Toggle, turn on, or turn off dimming.
Get HazeOver Settings: Returns the current dimming state, intensity, and other settings as input values for conditions or subsequent steps in your workflow.
Set Dimming Color: CSS color name or hex value, for example black, FF0000, or #F00.
Set Animation Duration: Fade duration between 0 (instant) and 5 seconds.
Set Dimming Intensity: Level between 0 (transparent) and 100 (opaque).
Set Window Highlight Mode: Whether one or all front windows of the current app are highlighted.
Set Display Highlight Mode: Dim everything on displays without keyboard focus, or highlight windows on each.
Update Dimming: Forces a refresh. Only needed when a third-party app reorders windows without triggering an update.
How to Use Automations
Shortcuts can run automatically in response to events, such as an app opening or a set time of day. To add a trigger to a shortcut:
Double-click a shortcut with HazeOver actions, or create a new one
In the Action Library on the right, click Automation, then double-click a trigger such as App or Time of Day
Configure the trigger at the top of the shortcut, for example choose which app
To get a notification each time it runs, click › next to the trigger, then select Notify
Click Automation in the sidebar to see all your automations and turn them on or off.
In macOS Tahoe 26, automations are set up separately from shortcuts:
Open the Shortcuts app and click Automation in the sidebar
Click + (or choose File > New Automation)
Choose a trigger and click Next
Configure its options, select Run Immediately, then click Next
Pick an existing shortcut, or click New Shortcut to build one with HazeOver actions, then click Done
HazeOver actions pair naturally with automation triggers, for example:
App: Turn dimming on when your writing or coding app opens, and off when it closes
Time of Day: Ramp up intensity at sunset, reset it at sunrise
Wi-Fi: Turn dimming on when joining your office network, off at home
Bluetooth: Turn dimming on when headphones are connected, a natural signal to get focused
Battery Level and Charger: Reduce animation duration when battery falls low, restore it when plugged in
Stage Manager: Turn dimming on when you turn off Stage Manager
Do Not Disturb or another Focus: Change dimming settings when the Focus turns on or off
For a dedicated Focus integration with automatic revert, see Focus filters.
How to Use Focus Filters
Focus filters apply custom HazeOver settings when a Focus is turned on, and revert them automatically when it’s turned off (unless you changed them manually in the meantime). A Focus can turn on automatically during set hours, when a certain app is open, or when you’re at a certain location. For example, enable dimming while at work and have it revert when you’re done.
Open System Settings and click Focus in the sidebar
Click an existing Focus (like Do Not Disturb), or click Add Focus… to add a new one
Click Add Filter… in the Focus Filters section
Select HazeOver in the app list
Choose a Dimming option for this Focus:
Set Intensity to set a specific level with a slider
Turn On or Turn Off dimming
Optionally turn on Set Color to use a custom color
Click Add, then turn on the Focus to see it in action
To turn this Focus on automatically at set times, at a location, or while an app is open, click Add Schedule…. Use automations for events unrelated to a Focus, such as Wi-Fi changes, battery level, or sunset.
How to Use With Third-Party Tools
HazeOver works with Raycast via the HazeOver Controls extension. Install it from the Raycast Store to get instant access to these commands:
Toggle Dimming: Turn HazeOver on or off
Change Dimming Intensity: Pick an opacity level on the fly
Toggle Multi Window Focus: Switch between highlighting only the top window or all windows of the current app
Toggle Multi Screen Focus: Switch between per-display focus and dimming everything on secondary screens
Other tools like Alfred, BetterTouchTool, and Keyboard Maestro can control HazeOver through AppleScript and wire up its properties as macro actions.
ActionShortcuts is built for running AppleScript files from the menu bar or with keyboard shortcuts, and includes sample scripts to get you started.
How to Use AppleScript
Open Script Editor (in Applications > Utilities)
Draw the rest of the owl
Write a script based on the examples below
Choose Script > Run
To explore available HazeOver properties and commands, open its scripting dictionary:
Locate HazeOver in your Applications folder
Drag the HazeOver app onto the Script Editor Dock icon
You’ll find available scripting properties in the HazeOver Suite > application section. To keep HazeOver at hand, choose Window > Library, click +, and choose HazeOver. Then double-click it in the list whenever you need the dictionary.
Supported Properties and Commands
enabled(boolean): HazeOver on (true) or off (false).
tellapplication "HazeOver" to setenabledto notenabled
intensity(number): Dimming level from 0 (transparent) to 100 (opaque).
tellapplication "HazeOver" to setintensityto 75
color(text): CSS color name or hex value, for example black, FF0000, or #F00. Always returns a 6-character hex value.
tellapplication "HazeOver" to setcolorto "5EA1Ed"
duration(number): Animation duration between 0 (instant) and 5 seconds.
tellapplication "HazeOver" to setdurationto 0.5
multiFocus(boolean): Highlight one (false) or all (true) front windows of the current app.
tellapplication "HazeOver" to setmultiFocustotrue
multiScreen(boolean): Dim everything on displays without keyboard focus (false), or highlight windows on each (true).
tellapplication "HazeOver" to setmultiScreentofalse
updateDimming: Use this command when some other action or app reorders windows but dimming doesn’t update. This should only be necessary in rare cases with third-party apps.
tellapplication "HazeOver" toupdateDimming
Contact me if you need help coming up with or setting up HazeOver automation.