Is there a way to turn off notifications automatically when I connect to AirPlay? If I'm AirPlaying my screen, I likely don't want the room to see my notifications. Is there a way to automatically kill notifs when I connect besides manually option+clicking the icon in the upper-right corner each time?
Open System Preferences → Notifications, select Do Not Disturb in the sidebar and enable ‘Turn on Do Not Disturb: When mirroring to TVs and projectors’.



If you enable AirPlay without mirroring, then Do Not Disturb is not activated, but the notifications only appear on your primary monitor anyway.