This macro regularly checks to make sure notifications are enabled for Keyboard Maestro Engine.
I've never had any issues with the notifications so far, but this gives me some peace of mind considering how many of my macros rely on them.
Notice: I used
jq, not realizing at the time that I would end up sharing this macro publicly, so that's currently a requirement.
The comment inside the macro, pasted here for search purposes
All existing macros for “checking stuff” rely on the Keyboard Maestro Engine being able to send notifications through macOS.
grabs the current notification setting “flags” from com.apple.ncprefs that specify the state of the Engine under Notifications in System Preferences.
does some bitwise math to check for certain sub-states
triggers a Keyboard Maestro window notification if macOS notifications are off