Files
DankMaterialShell/quickshell/Common
MattiasandClaude Opus 5 2c136b6c10 notifications: auto-enable do not disturb while screen sharing (#3316)
Turn on do not disturb while a screen share is active so notification
popups and their contents stay off the shared screen. The unread dot and
the existing dnd bypasses are unaffected.

Detection reuses the screen sharing privacy indicator: niri cast ipc,
otherwise pipewire and xdg-desktop-portal. Neither source says when it
has finished reporting, so a share reading as gone is only acted on once
it stays gone for four seconds. Engaging stays immediate, and turning the
setting off releases right away since that is a user action rather than a
detection guess.

Turning dnd off by hand during a share is remembered against the sources
that were sharing at the time, so it holds for that share and across a
shell reload. A share started after that one has ended gets a fresh
decision.

Co-authored-by: Claude Opus 5 <[email protected]>
2026-09-15 12:37:24 -04:00
..
2026-07-18 10:44:31 -04:00