do-not-disturb
Toggle do not disturb mode for OS X
CLI
$ npm i -g do-not-disturb
$ 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
:
API
$ npm install --save do-not-disturb
var doNotDisturb = require('do-not-disturb')
doNotDisturb(function () {
console.log('Do not disturb has been toggled')
})
License
MIT
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
Crafted with <3 by John Otander (@4lpine).
This package was initially generated with yeoman and the p generator.