Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/johno/do-not-disturb
Turn on do not disturb mode for OS X
https://github.com/johno/do-not-disturb
Last synced: 3 months ago
JSON representation
Turn on do not disturb mode for OS X
- Host: GitHub
- URL: https://github.com/johno/do-not-disturb
- Owner: johno
- License: mit
- Created: 2015-09-23T20:27:40.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-03-14T14:29:57.000Z (almost 7 years ago)
- Last Synced: 2024-04-14T07:47:45.374Z (10 months ago)
- Language: JavaScript
- Homepage:
- Size: 16.6 KB
- Stars: 15
- Watchers: 4
- Forks: 4
- Open Issues: 4
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# do-not-disturb [![Build Status](https://secure.travis-ci.org/johno/do-not-disturb.png?branch=master)](https://travis-ci.org/johno/do-not-disturb)
Toggle do not disturb mode for OS X
## CLI
```bash
$ npm i -g do-not-disturb
``````bash
$ do-not-disturb --helpUsage
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](https://cloud.githubusercontent.com/assets/1424573/10701986/06c323a6-7984-11e5-9fa1-3fb239c7a60f.png)
## API
```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);
```## License
MIT
## Contributing
1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull RequestCrafted with <3 by John Otander ([@4lpine](https://twitter.com/4lpine)).
***
> This package was initially generated with [yeoman](http://yeoman.io) and the [p generator](https://github.com/johnotander/generator-p.git).