We’re rewarding the question askers & reputations are being recalculated! Read more.
45

Option + Click the menu bar Actually, there is a Menu Bar icon, of sorts. To toggle Do Not Disturb you can just hold the option key down while you click on the Notification Centre icon at top right of your Menu Bar. Doing this will instantly make any visible notifications disappear and grey out the icon. You can still click on it to manually show/hide the ...


24

Complementing Monomeeth's excellent answer, there's also a toggle button available in the Notification Center in macOS. This is sort of the shortcut (albeit a bit lengthy) you are looking for. Click on the Notification Center button in the far right on the Menu bar to reveal the Notification Center UI. Now with the Today tab selected, scroll down to reveal ...


17

As of OS X 10.10.3, this AppleScript will toggle "Do Not Disturb." No keyboard shortcut required: tell application "System Events" to tell process "SystemUIServer" key down option click menu bar item 1 of menu bar 2 key up option end tell You can save it as an AppleScript and run it from the terminal with osascript DoNotDisturb.applescript, or you ...


14

As well as the answers given, if your Mac has a Touch Bar, you can customise it to include a toggle for Do Not Disturb in the Control Strip which is (nearly) always visible. Of course, you'll have to give up one of the other functions from the Control Strip -- the defaults are brightness, volume, mute and Siri.


11

You can just setup a global keyboard shortcut for it in System Preferences -> Keyboard -> Shortcuts -> Mission Control Or if you definitely want it from the command line, an applescript to do this (assuming you setup the keyboard shortcut to use cmdshiftoptctrlD. Note that you still MUST setup a keyboard command in System Preferences for this to work. Put ...


10

You can simplify the answer that razvanz provided by using the -currentHost argument to the defaults command. Enable Do Not Disturb: defaults -currentHost write ~/Library/Preferences/ByHost/com.apple.notificationcenterui doNotDisturb -boolean true defaults -currentHost write ~/Library/Preferences/ByHost/com.apple.notificationcenterui doNotDisturbDate -date ...


8

Building on answers from James and Zsolt, I've created a couple of scripts to turn on or off (not toggle) DND state. They also don't require any key bindings or machine GUID to work. IMPORTANT: Please note that running these scripts for the first time may require accessibility permission for the app which runs the scripts. If you do not grant the permission ...


7

Apple does not allow apps to "play with" that system setting. That's the technical reason why there's no app for it. It might be able using a jailbreak tweak if it has to change every day (for example: monday between 2 and 4, tuesday between 2 and 3 etc.) However if you go to: Settings Do not disturb Scheduled Pick the time of your desire You're done


6

Do Not Disturb has Manual or Timer modes, though it is fixed times, not 'until alarm goes off' Details at Use Do Not Disturb on your iPhone, iPad, or iPod touch With Do Not Disturb, you can silence calls, alerts, and notifications that you get while your device is locked. You can also schedule a time or choose who you'll allow calls from. Turn Do Not ...


6

When you're in the middle of using the Messages app, and you receive a new message, it's actually the Messages app itself that is asking the phone to vibrate, rather than a notification coming in and causing the phone to vibrate. So you're right, the 'Do Not Disturb' setting doesn't stop apps from asking the phone to vibrate or play audio while they are ...


6

It's my understanding that this is by design. Do Not Disturb mode is meant to be active when the phone is not actively in use. The idea behind it is that, if the phone is unlocked and you are working with it, you do in fact WANT to be notified of a new item. However, when the phone is locked and dormant, the logic is that you no longer wish to be ...


6

Sadly, on a non jailbroken phone you can only set Do Not Disturb to set hours, regardless of which day. Therefore, every day gets the same hours. What would be nice, would be a system like the alarms where you can set multiple ones and have them repeat on choosable days, then you could set 2 DND period, one to cover weekdays, and one for weekends etc. I ...


5

Your phone may not be on "Do Not Disturb," but that conversation is - it's a separate setting from your phone's "Do Not Disturb" setting. Just go into that conversation -> Details -> toggle the Do Not Disturb switch and you should have your notifications back.


4

This currently can't be done. Schedules you select apply to all the days of the week. You can provide feedback to Apple on the following page: http://www.apple.com/feedback/iphone.html


4

You could use Do not Disturb mode. Found under Settings / Do Not Disturb or in Control Center (the moon icon), this mode silents calls, alerts and notifications and it can be scheduled to be automatically enabled between specified hours.


4

If you go into the do not disturb settings, at the bottom there is an option to silence always or only when the phone is locked.


3

AFIK the Do Not Disturb does not have setting to let Text Messages through like phone calls. You can join the large group asking Apple to do it http://www.apple.com/feedback/


3

Scroll up the Notification Center to reveal the switch.


3

Go on Settings -> Notifications


3

If you have a trackpad, and you want to enter "Do Not Disturb" mode with gestures, then go to System Preferences->Trackpad->More Gestures and turn on "Notification Centre". Now you can swipe to the left with two fingers from the edge of the trackpad to open the Notification Center. Now swipe down with two fingers to reveal the Do Not Disturb switch. If you ...


2

The iOS 7 description of Do Not Disturb states(accessible over Settings > Do Not Disturb) When Do Not Disturb is enabled calls and alerts that arrive while locked will be silenced, and a moon icon will appear in the status bar. So DND should not cancel incoming calls. This seems to be an ongoing problem/bug on the official apple forums.


2

If you're using the mouse &/or keyboard, it won't, of course, go to screensaver. If you're not, try System Prefs > Desktop & Screen Saver > Hot Corners. I have mine set like this... just shove the cursor to the top left of the main screen & no more nodding off...


2

Schedule Do Not Disturb Just to add that you can also schedule Do Not Disturb from the command line to activate/deactivate each day at set times. To set the time when DND will be enabled: defaults -currentHost write ~/Library/Preferences/ByHost/com.apple.notificationcenterui dndStart -integer <start_time_in_minutes> To set the time when DND will be ...


2

Short answer… No. There is no public API that manages the "Do Not Disturb" feature. There are also no frameworks that can achieve this. Googling would also say it's not the kind of sandbox breakout Apple would be likely to allow in the future, either.


2

You can also ENABLE the keyboard shortcut for it. To do so go to the syst pref keyboard shortcuts.


2

I used the hacky workaround in this post on my slightly older Macs and it worked like a charm. https://www.macobserver.com/tmo/article/os-x-10.8-turning-off-notification-center-permanently Turn OFF Notification Center Permanently Here's the best way to permanently kill the Notification Center. Open the terminal and type: launchctl unload -w /System/...


2

Source: If you set a scheduled Do Not Disturb time (as many of us do during our normal sleeping hours), you’ll have the option to toggle Bedtime Mode for those hours. Regular Do Not Disturb mode silences calls and notifications. When it’s active, sounds and vibrations won’t wake you up (or disturb your dinner companion, or make noise in the movie theater),...


2

No - do not disturb is a system level function on macOS and iOS. What you’d need to do is make an AppleScript or other tool to automate disabling notifications for that app and then possible hook that up to a timer app or trigger (or just remind yourself to toggle it with a keyboard shortcut when your other manual timer goes off). So a third party app on ...


Only top voted, non community-wiki answers of a minimum length are eligible