Toggle do not disturb mode for macOS
npm install do-not-disturbToggle do not disturb mode for OS X
``bash`
$ npm i -g do-not-disturb
`bash
$ do-not-disturb --help
Usage
do-not-disturb
`
Note: If you haven't already, you will need to give your Terminal.app the ability to control your computer. In System Preferences > Security & Privacy:
!h4ixljc8p5u7wpaidv7ynwrbvlifzonor7gxg-fdn7e
`bash`
$ npm install --save do-not-disturb
`javascript
const doNotDisturb = require('do-not-disturb');
doNotDisturb.on();
doNotDisturb.off();
// Or check the state of do not disturb mode
doNotDisturb
.status()
.then(console.log);
`
MIT
1. Fork it
2. Create your feature branch (git checkout -b my-new-feature)git commit -am 'Add some feature'
3. Commit your changes ()git push origin my-new-feature`)
4. Push to the branch (
5. Create new Pull Request
Crafted with <3 by John Otander (@4lpine).
*
> This package was initially generated with yeoman and the p generator.