Use Do Not Disturb on your Mac
When you need to focus on a specific task, or just need a break from notifications on your Mac, you can turn on Do Not Disturb. You don’t see or hear notifications as they arrive, but they’re collected in Notification Center, where you can view them later.
Temporarily turn on Do Not Disturb
On your Mac, press and hold the Option key while you click the Notification Center icon in the menu bar.
The icon is dimmed to show Do Not Disturb is on. It stays on until midnight or until you turn it off, or until it’s scheduled to turn off (as specified in Notifications preferences).
Schedule Do Not Disturb
On your Mac, choose Apple menu > System Preferences, then click Notifications.
Select Do Not Disturb at the top of the sidebar.
You can stop notifications during a time period, when your Mac is in sleep (useful if you sleep near your Mac), or when you project the screen (for example, if you’re giving a presentation).
If you want to receive call notifications even when Do Not Disturb is on, select the call tick boxes.