Keystroke to turn on/off Do not disturb doesn't work

I want to create a Macro to enable Do not disturb but can't make it work.


When I type Option + Command + F10 directly I still can turn on/off DND.

I tried removing and adding KM + KM engine in Accessibility, still doesn't work.

I am using Macbook air early 2015, MacOS Big Sur 11.1.

Is this a bug of KM? How can I fix it?

Thank you very much.

I would humbly suggest you're overthinking the solution to this problem. Surely, it would make more sense to set the keyboard shortcut you want for toggling DND in System Preferences > Keyboard > Shortcuts and let macOS handle it?

The full macro I want to create would include: enable another app (also by using Type keystroke and it is working just fine), turn on DND, pause 25 minutes, disable other app and turn off DND

Turn on and off DND is the only part I couldn’t solve at the moment.

FWIW I have made toggling DND = HyperKey + D (so command+option+control+shift+D) and Keyboard Maestro can easily emulate that keystroke in another macro, so maybe try a different key combination?

I’m also on Big Sur. Not sure if that matters.

I would first follow tjlouma's suggestion to try an alternate shortcut. If that makes no difference, it could be that in your full macro a pause is needed between the application launch and the activation of Do Not Disturb. The pause doesn't necessarily need to be long, maybe just a few seconds or until the app that was launched has completed its launch process.

It works!!!
Thank you very much. I tried again with Hyperkey + F10 and it doesn't work, I think there might be problem with F10 key.

1 Like