Keyboard shortcuts for Focus and Do Not Disturb on Mac
Toggle Do Not Disturb on a Mac with the moon key, a custom keyboard shortcut, or a Shortcuts app shortcut for any Focus. Plus starting a focus timer from the keyboard.
On this page
On recent MacBook keyboards, the top-row key with a moon icon toggles Do Not Disturb. Without that key, assign your own shortcut in System Settings → Keyboard → Keyboard Shortcuts, or build a shortcut in the Shortcuts app that turns on any Focus and give it a key combination. To start a focus timer from the keyboard, OneNotch uses ⌃⌥N then F.
The moon key
MacBook Air and MacBook Pro models with the newer keyboard layout have a Do Not Disturb key, marked with a moon, in the top row. Press it to turn Do Not Disturb on or off. If the top row acts as F1–F12 on your Mac, hold fn (or the globe key) while pressing it.
Assign a system shortcut
macOS has an entry for Do Not Disturb in its keyboard shortcuts, without a key assigned by default:
- Open System Settings → Keyboard and click Keyboard Shortcuts….
- Look through the sections (Do Not Disturb is listed under Mission Control on recent versions) for Turn Do Not Disturb On/Off.
- Turn it on, double-click the shortcut area and press the keys you want, such as ⌃⌥D.
Pick a combination that apps don't already use.
Any Focus with the Shortcuts app
To toggle a Focus other than Do Not Disturb, such as Work or Writing:
- Open the Shortcuts app and create a new shortcut.
- Add the Set Focus action and choose the Focus, plus whether to turn it on, off or toggle it, and for how long.
- Open the shortcut's details and choose to add a keyboard shortcut, then press your key combination.
Now that key combination works from any app. You can make one shortcut per Focus, or one that turns on a Focus for, say, 50 minutes.
Shortcuts you'll use during focus
| Shortcut | Action |
|---|---|
| Moon key | Toggle Do Not Disturb |
| ⌘Tab | Switch apps without reaching for the trackpad |
| ⌃⌘F | Full screen in many apps, to hide everything else |
| ⌘H | Hide the current app |
| ⌥⌘H | Hide every other app |
Hiding other apps with ⌥⌘H is an underrated way to start a session: one window, nothing else on screen. See single-tasking on a Mac.
A keyboard-only start to a session
Put the pieces together and a focus session starts in a few keystrokes, without touching the trackpad:
- Press the moon key (or your own shortcut) to turn on Do Not Disturb.
- Press ⌥⌘H to hide every app except the one you're working in.
- Press ⌃⌘F to make it full screen, if the app supports it.
- Start your timer (below).
Ending is the reverse: stop the timer, press the moon key again, and check messages on purpose. For the bigger picture of a quiet working setup, see how to set up your Mac for deep work.
Start a focus timer from the keyboard
OneNotch's focus timer can be started without the mouse:
- Press ⌃⌥N from any app. The notch opens and takes the keyboard.
- On Home or Today, press F to start a session of your default length. Press it again to stop.
- Press Esc to close the notch, or just move on; the keyboard goes back to the app you were using.
If Slack is connected, the session sets your status to "Focusing" and pauses Slack notifications. OneNotch doesn't change macOS Focus modes, so combine it with the moon key or your own shortcut for a fully quiet Mac. You can change ⌃⌥N in Settings → General. All of OneNotch's keys are on the shortcuts page, and the timer itself is covered in the simplest focus timer for Mac.
FAQs
Is there a default keyboard shortcut for Do Not Disturb?
The moon key on recent MacBook keyboards. Otherwise, assign one in Keyboard Shortcuts or with the Shortcuts app.
Can one shortcut start a Focus and a timer together?
A Shortcuts app shortcut can turn on a Focus for a set time. OneNotch's timer is started separately, with F in the notch.
Why doesn't my moon key work?
Your top row may be set to act as F1–F12. Hold fn or the globe key, or check System Settings → Keyboard.
Can I change OneNotch's F key?
No, but you can change the shortcut that opens the notch, ⌃⌥N, in Settings → General.