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 Centre, 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 Centre 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.
If you want to receive call notifications even when Do Not Disturb is on, select the call tickboxes.