tomighty / tomighty-osx

Tomighty for macOS
https://tomighty.github.io
Apache License 2.0
309 stars 79 forks source link

Option to enable "Do Not Disturb" in the Notification Center #17

Closed seanorama closed 7 years ago

seanorama commented 9 years ago

Feature request: Automatically enable "Do Not Disturb" in the OSX Notification Center during a cycle, and then disable during the break.

"Do Not Disturb" was added in Mavericks. See it by holding 'option' and clicking the OSX Notification Center: https://www.dropbox.com/s/germyjxd1le3udk/Screenshot%202015-01-30%2020.51.42.png?dl=0

eduardonunesp commented 9 years ago

:+1:

jonathanhds commented 9 years ago

Unfortunately, there is not an API to access the Do Not Disturb feature :(

eduardonunesp commented 9 years ago

:-1:

timgws commented 8 years ago

This stack overflow post might be of help: http://apple.stackexchange.com/a/69760/117542

Notification Center drops a plist in the following location that you can read the value of.

Seems a little hacky though, I wouldn't really want an app killing NotificationCenter just so that the DND mode can be enabled.

dvntucker commented 8 years ago

Hmm, personally a little too hacky for my tastes. Definitely something to consider if there is ever a public API for it.

One thing I have thought of doing is adding scripting support to Tomighty to run scripts off various events, similar to what Focus does. This would let people script their DnD settings via AppleScript. Will probably close this ticket at some point.

dvntucker commented 7 years ago

Closed, since it's not going to be implemented. Feel free to open a new ticket if DND ever gets an API.