🔗
Go to Settings → Focus → Do Not Disturb, and under “Set a Schedule”, tap Add Schedule and enable Smart Activation. Now, when you start a screen recording, Do Not Disturb turns on automatically, and it turns itself off a few seconds after you finish recording. I’m not sure what else triggers Smart Activation — the description in Settings is pretty vague — but for screen recordings this is just what I wanted.
As a frequent screen capturer, this gets a 👍.