Thanks for this! I'm still on Big Sur and probably won't update to Monterey for a few months but I'm trying to be proactive in seeing how any of my current macros might break when I upgrade.
Big Sur has been a nightmare for my DND macros. I've never been able to reliably replicate what I had on Catalina. Hopefully Monterey will be a little friendlier with the switch to Focus.
calm-notifications works great on Big Sur for toggling DND on or off, or checking its status.
It does not (yet) work on Monterey, but I thought it might help you in the meantime.
Since this is a bit OT, feel free to send me a PM/DM if you need any help using calm-notifications
Also, FWIW, Monterey has been very stable for me. Easy upgrade. As David Sparks said, it’s something of an unspoken “Snow Leopard” year… with Focus Mode being one of the few exceptions (that is, a new feature)