Skip to content

macOS actions

macOS actions allow you to control macOS-specific features during your presentations. These actions are only available on macOS and include Focus Mode (Do Not Disturb) controls, menu bar visibility, dock visibility, volume control, screen resolution switching, and system sleep prevention (Caffeine).

Enable Focus Mode

Enable Focus Mode (Do Not Disturb) on macOS. This action requires a Shortcuts automation named “Enable Do Not Disturb” to be set up on your Mac.

{
"action": "macos.enableFocusMode"
}

Disable Focus Mode

Disable Focus Mode (Do Not Disturb) on macOS. This action requires a Shortcuts automation named “Disable Do Not Disturb” to be set up on your Mac.

{
"action": "macos.disableFocusMode"
}

Hide Menu Bar

Hide the macOS menu bar by enabling auto-hide.

{
"action": "macos.hideMenubar"
}

Show Menu Bar

Show the macOS menu bar by disabling auto-hide.

{
"action": "macos.showMenubar"
}

Mute Volume

Mute the system volume on macOS. This is useful for presentations where you want to ensure no unexpected sounds interrupt your demo.

{
"action": "macos.muteVolume"
}

Unmute Volume

Unmute the system volume on macOS.

{
"action": "macos.unmuteVolume"
}

Enable Caffeine

Prevent the system from sleeping during presentations. You can enable it indefinitely or for a specific duration in minutes.

{
"action": "macos.enableCaffeine"
}

Parameters

  • duration (optional): Duration in minutes to prevent sleep. If not specified, prevents sleep indefinitely.

Disable Caffeine

Re-enable system sleep after a presentation. This stops all running caffeinate processes.

{
"action": "macos.disableCaffeine"
}

Hide Dock

Hide the macOS dock by enabling auto-hide. This provides a cleaner workspace during presentations by automatically hiding the dock until you move your cursor to the bottom of the screen.

{
"action": "macos.hideDock"
}

Show Dock

Show the macOS dock by disabling auto-hide. This restores the dock to always be visible.

{
"action": "macos.showDock"
}

Presentation Mode Example

Here’s a comprehensive example of how to set up your Mac for presentation mode at the start of a demo:

{
"title": "Start Presentation Mode",
"description": "Set up Mac for presenting",
"steps": [
{
"action": "macos.enableCaffeine",
"duration": 90
},
{
"action": "macos.muteVolume"
},
{
"action": "macos.enableFocusMode"
},
{
"action": "macos.hideMenubar"
},
{
"action": "macos.hideDock"
},
{
"action": "setPresentationView"
}
]
}

And to restore your Mac after the presentation:

{
"title": "End Presentation Mode",
"description": "Restore Mac settings",
"moves": [
{
"action": "macos.disableFocusMode"
},
{
"action": "macos.showMenubar"
},
{
"action": "macos.showDock"
},
{
"action": "macos.unmuteVolume"
},
{
"action": "macos.disableCaffeine"
},
{
"action": "unsetPresentationView"
}
]
}