Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Changing Mac Keyboard Shortcuts for Shutdown

· 6 min read · Home Tech

In this article
  1. Default Shutdown Shortcuts on Mac
  2. How to Create a Custom Shutdown Shortcut
  3. Using Automator or Shortcuts to Make a Shutdown Shortcut
  4. Common Problems and Fixes
  5. Alternative Methods: Third-Party Utilities
  6. Safety and Precautions
  7. Frequently Asked Questions

You can change or create keyboard shortcuts for shutdown, restart, and sleep on a Mac using the built-in System Settings (or System Preferences on older macOS versions). This article explains how to set up these shortcuts, what the default options are, and how to troubleshoot common issues.

Default Shutdown Shortcuts on Mac

macOS does not have a single-key shutdown shortcut by default. The closest built-in options are:

  • Control + Option + Command + Power button – Shuts down immediately without confirmation.
  • Control + Command + Power button – Restarts the Mac.
  • Control + Shift + Power button – Puts the display to sleep.
  • Option + Command + Power button – Puts the Mac to sleep.

These shortcuts work on most Macs with a physical power button. On newer MacBooks with Touch ID, the Touch ID button acts as the power button. If your keyboard lacks a power button, you can use the Control + Option + Command + Media Eject or Control + Option + Command + Power combination depending on your model.

How to Create a Custom Shutdown Shortcut

To create a keyboard shortcut that triggers shutdown (or any other action), you can use the built-in “App Shortcuts” feature in System Settings. This method works for any menu command that appears in an app’s menu bar.

  1. Open System Settings (or System Preferences on macOS Monterey and earlier).
  2. Go to Keyboard → Keyboard Shortcuts → App Shortcuts.
  3. Click the + button.
  4. In the “Application” dropdown, select Finder (or “All Applications” if you want it to work everywhere).
  5. In the “Menu Title” field, type the exact menu command name. For shutdown, you’ll need to use a command from the Apple menu, but Apple menu items are not accessible via App Shortcuts. Instead, you can create a shortcut for “Shut Down…” in the Finder’s File menu? Actually, the Finder’s Apple menu is not customizable this way. A better approach is to use a third-party utility or AppleScript.

Because the Apple menu commands (Shut Down, Restart, Sleep) are not in an app’s menu bar, the App Shortcuts method won’t work directly. Instead, you can use Automator or Shortcuts to create a service that runs an AppleScript, then assign a keyboard shortcut to that service.

Using Automator or Shortcuts to Make a Shutdown Shortcut

Automator (still available on macOS Ventura and later) lets you create a Quick Action that runs an AppleScript. Here’s how:

  1. Open Automator (in /Applications/Utilities).
  2. Choose New Document → Quick Action.
  3. Set “Workflow receives” to no input in any application.
  4. Drag “Run AppleScript” from the library into the workflow.
  5. Enter the script: tell application "System Events" to shut down
  6. Save the Quick Action with a name like “Shutdown Mac”.
  7. Then go to System Settings → Keyboard → Keyboard Shortcuts → Services → find your Quick Action under “General” and assign a shortcut.

Alternatively, on macOS Monterey and later, you can use the Shortcuts app: create a new shortcut with the “Shut Down” action (if available) or run an AppleScript, then add it to the menu bar and assign a keyboard shortcut via System Settings → Keyboard → Keyboard Shortcuts → Services (for the shortcut).

Common Problems and Fixes

  • Shortcut doesn’t work: Make sure the Quick Action is enabled in System Settings → Extensions → Finder (or under Services). Also, check that the keyboard shortcut isn’t already used by another app.
  • AppleScript not allowed: You may need to grant Accessibility permissions to the app that runs the script (e.g., System Events). Go to System Settings → Privacy & Security → Accessibility and add your terminal or the app you’re using.
  • Shutdown requires confirmation: The AppleScript “shut down” command bypasses the confirmation dialog. If you want a confirmation, use tell application "Finder" to shut down which shows the standard dialog.
  • Shortcut not appearing in Services: After saving the Quick Action, restart the app (or the whole system) to refresh the Services menu.

Alternative Methods: Third-Party Utilities

If you prefer a simpler solution, several free and paid utilities let you assign global hotkeys to system actions like shutdown. Examples include BetterTouchTool, Keyboard Maestro, and Hammerspoon (free and open-source). These tools give you more flexibility, such as requiring a specific key combination or adding a delay. However, they require installation and sometimes a purchase.

Safety and Precautions

Before assigning a shutdown shortcut, be aware that accidentally triggering it can close all open apps and lose unsaved work. To avoid this, consider using a shortcut that opens the shutdown dialog (e.g., Control + Option + Command + Power) instead of an immediate shutdown. If you use an AppleScript that shuts down immediately, make sure the key combination is not one you press accidentally. Also, remember that some Macs may have “Start up automatically after a power failure” enabled, which can cause the Mac to turn back on immediately after shutdown.

Frequently Asked Questions

Can I set a single key to shut down my Mac?

Yes, you can assign a single function key (like F12) to a Quick Action that shuts down, but it’s risky because you might hit it by accident. Use a modifier combination instead, such as Control + Option + Command + F12.

Why doesn’t the Control+Option+Command+Power shortcut work on my Mac?

This shortcut works on Macs with a physical power button. On newer MacBooks with Touch ID, the Touch ID button is the power button, and the shortcut should still work. If it doesn’t, check System Settings → Keyboard → Keyboard Shortcuts → Modifier Keys to ensure no conflicts. Also, on some external keyboards, the power button may not be present, so the shortcut won’t work.

Is there a way to make the shutdown shortcut require confirmation?

Yes. Instead of using the immediate shutdown AppleScript, use tell application "Finder" to shut down which triggers the standard confirmation dialog. You can also use the built-in shortcut Control + Option + Command + Power (which does not confirm) or Control + Command + Power (which restarts with confirmation).

Can I create a shutdown shortcut that works in all apps?

Yes, if you create a Quick Action in Automator and set it to receive “no input” in “any application”, it will appear in the Services menu of every app. Assigning a keyboard shortcut to that service makes it global.

Will my Mac shut down if I press the shortcut while a program is fullscreen?

Yes, the shortcut will work even in fullscreen apps, because it’s a system-level action. However, the app may block it if it has a “Do Not Disturb” mode or if the system is locked. In most cases, it works.

What is the difference between shutdown and sleep shortcuts?

Shutdown turns off the Mac completely, while sleep puts it in a low-power state where open apps and documents remain in memory. Sleep uses a small amount of power and wakes quickly. Shutdown is for when you won’t use the Mac for a long time or want to save battery.