Guides

Turn on Do Not Disturb automatically when you focus on a Mac

macOS can switch Do Not Disturb on by itself in three ways: a Focus schedule that follows the clock, a place or an app; the Set Focus action in Shortcuts, which you can run from a keyboard shortcut or a script; or a focus timer that runs those shortcuts when a round starts and ends. Here’s how each one works, why an app can’t simply switch it on for you, and how to keep the one alert that matters, like an agent waiting for your answer.

The quick way, by hand

Open Control Center in the menu bar, click Focus and choose Do Not Disturb. Its menu can also keep it on for an hour or until later in the day. Notifications are silenced and wait in Notification Center until you turn it off.

That works for one long block. For focus in rounds, with breaks in between, you’d be clicking it on and off all day, which is exactly what the next three options avoid.

On a schedule: time, place or app

Every Focus, Do Not Disturb included, can turn itself on and off. In System Settings, click Focus, pick the Focus, and under the schedule section click Add Schedule. There are three kinds:

ScheduleTurns onTurns offGood for
TimeAt the start time, on the days you pickAt the end timeA fixed deep-work block, like 9 to 11 every weekday
LocationWhen you arrive at a placeWhen you leave itAn office or a library; needs Location Services
AppWhen you open an appWhen you close it or switch to another appWork that stays in one app, like writing

The app schedule sounds perfect for coding, but it follows the app in front. Switch to a browser to read the docs and Do Not Disturb turns off. A time schedule is steadier, but it doesn’t know when you actually sat down.

One thing to check either way: if Share across devices is on in Focus settings, a Focus you turn on on the Mac turns on on your iPhone too.

With Shortcuts: Set Focus

The Shortcuts app has an action called Set Focus. It turns a Focus on or off, or on until a time you choose. Make two small shortcuts:

  1. Open Shortcuts, create a new shortcut, add Set Focus, and leave it on Turn Do Not Disturb On. Name it, for example, “Focus On”.
  2. Make a second one with Turn Do Not Disturb Off and call it “Focus Off”.

Now you can run them from anywhere. In a shortcut’s details you can give it a keyboard shortcut, or pin it to the menu bar. From Terminal or any script, it’s one command:

shortcuts run "Focus On"
shortcuts run "Focus Off"

That command is the useful part: anything that can run a command can now switch Do Not Disturb, from a shell alias to a timer. Instead of Do Not Disturb you can pick your own Focus in the action, say one called “Coding” that still lets your terminal through.

In macOS Tahoe, Shortcuts on the Mac also has automations that run a shortcut on their own, for example at a time of day or when an app opens.

Why your focus app can’t just switch it on

macOS gives apps no public way to turn a Focus on or off. An app can at most ask whether a Focus is on. Shortcuts is the exception, which is why focus timers that do it all work the same way: you add a pair of shortcuts once, and the app runs them with the shortcuts command when a round starts and ends.

A careful app also turns Do Not Disturb off again when it quits, and checks on its next launch whether it left it on, since a crash would otherwise leave you silenced for the rest of the day.

Don’t miss an agent that needs you

Do Not Disturb has one downside if you work with Claude Code or Codex: an agent waiting for your permission waits silently too, and an hour of focus can turn into an hour of a stalled session. Four ways around it:

Where Meowdoro fits

We built Meowdoro, a focus timer around the MacBook notch for people who work with Claude Code and Codex, and it uses exactly the Shortcuts approach above. In Settings, under Do Not Disturb during focus, Add Do Not Disturb shortcuts adds its two signed shortcuts in two clicks. Meowdoro then turns Do Not Disturb on when a focus starts, and off when the time is up, you skip or restart it, or you quit the app. If it was ever closed without turning it off, it does so on the next launch. You can pick your own shortcuts instead, for a different Focus.

While Do Not Disturb is on, Meowdoro’s island still shows which agent needs you, as one silent line, because it’s the app’s own window and not a notification. During a break nothing about agents shows at all. Try it and tell us what’s missing.

Questions

How do I make Do Not Disturb turn on automatically on a Mac?

In System Settings → Focus → Do Not Disturb, add a schedule by time, location or app. For more control, make a Shortcuts shortcut with the Set Focus action and run it from a keyboard shortcut, a script with shortcuts run, or a focus timer.

Can a Pomodoro app turn on Do Not Disturb?

Not directly: macOS has no public way for apps to switch a Focus. Apps that do it run a pair of shortcuts you add once, one for the start of a round and one for the end.

Can Do Not Disturb turn on when I open an app?

Yes, with an app-based schedule. It turns off again when you close the app or switch to another one.

Does Do Not Disturb mute all sounds?

No. It silences notifications. Music, calls you allow, and sounds that apps play on their own keep playing.

Will I miss Claude Code notifications with Do Not Disturb on?

Its desktop notifications wait in Notification Center unless you allow your terminal in that Focus. A hook that plays a sound only for permission prompts still reaches you.

Focus schedules and filters: Apple’s guide Set up a Focus on Mac, read for macOS Tahoe 26 on November 13, 2026. The Set Focus action and the shortcuts command: the Shortcuts app on macOS. Meowdoro’s behavior: its source code, read on November 13, 2026.