mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-10-16 16:24:00 -04:00
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]>