-
-
Notifications
You must be signed in to change notification settings - Fork 560
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Respect "Do Not Disturb" on macOS #760
Respect "Do Not Disturb" on macOS #760
Conversation
We can't use this module as it uses native Node.js add-ons, which mean we'll no longer be able to build all the binaries on one system.
Should it disable the Dock badge too?
You can listen to the |
For macOS, you might not even need a module for this. I think you can just read the |
@sindresorhus I've been trying to get the
Also my attempt to get the event didn't work, not getting any callback :
|
You're not specifying the suite name, which is not surprising, since it's not currently possible in Electron. I've opened an issue about it: electron/electron#17031
I have no idea why this is not working though... |
Seems it would be easiest to just go with https://github.com/sindresorhus/do-not-disturb and polling for now. Ideally, the |
If that's true I would rather not have this feature... |
@felixfbecker Polling is an option, or implementing sindresorhus/do-not-disturb#6. |
@sindresorhus I can take on the polling approach. I'm not sure how to start on sindresorhus/do-not-disturb#6 |
4869ad3
to
a11aa5f
Compare
@sindresorhus I've implemented a polling solution. Would you mind having a look over it for any feedback? Thanks! |
Waiting on sindresorhus/do-not-disturb#8 to be merged. |
82948f5
to
05bf286
Compare
5fb7530
to
e33e501
Compare
e33e501
to
3182b84
Compare
f9e8dc4
to
a02e226
Compare
Can you mention it in the readme highlights that it respects "Do Not Disturb" on macOS? |
If I have "Sounds" disabled, then turn on "Do Not Disturb" and then turn it off again, "Sounds" is then enabled. It should instead correctly revert back to the state before "Do Not Disturb". |
Dock badge shows even when "Do Not Disturb" is enabled. |
Fix dock badge showing when DND is enabled Revert to initial sounds value when toggling DND
Thanks :) |
Fixes #496