objective-see / DoNotDisturb

Detect Evil Maid Attacks
GNU General Public License v3.0
294 stars 42 forks source link

Show notification regardless of macOS' DND setting #13

Open jomo opened 5 years ago

jomo commented 5 years ago

Note: Please don't confuse macOS notification center's "DND" mode with objective-see's "DoNotDisturb" application in this issue!


MacOS does not show notifications when DND mode is enabled, which is reasonable, but sometimes it makes sense to ignore it. I think DoNotDisturb is one such case, as notifications usually show up when you just logged in. It could be an option in the settings if people don't want notifications to show up.

There's a _ignoresDoNotDisturb option for NSUserNotification (which does not seem to be documented).

Here's an example using julienXX/terminal-notifier:

example using terminal-notifier