Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/garygrossgarten/wach
💻 easy to use cli tool to prevent your mac from going to sleep when closing the lid. 👀
https://github.com/garygrossgarten/wach
awake mac mojave node preventing-sleep sleep
Last synced: about 2 months ago
JSON representation
💻 easy to use cli tool to prevent your mac from going to sleep when closing the lid. 👀
- Host: GitHub
- URL: https://github.com/garygrossgarten/wach
- Owner: garygrossgarten
- License: mit
- Created: 2019-02-03T15:08:43.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-03-02T23:34:09.000Z (almost 6 years ago)
- Last Synced: 2024-10-20T14:26:28.236Z (2 months ago)
- Topics: awake, mac, mojave, node, preventing-sleep, sleep
- Language: TypeScript
- Homepage:
- Size: 188 KB
- Stars: 4
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# wach
> prevent your mac from going to sleep when closing the lid. 👀.[![npm version](https://badge.fury.io/js/%40garygrossgarten%2Fwach.svg)](https://badge.fury.io/js/%40garygrossgarten%2Fwach)
![](https://img.shields.io/david/garygrossgarten/wach.svg?style=flat)
![](https://img.shields.io/npm/l/@garygrossgarten/wach.svg?style=flat)This is a simple cli tool to prevent your MacBook from going to sleep when closing the lid.
Use it instead of running tools that require a Kernel Extension.*Tested on macOS Mojave 10.14.2*
![](header.png)
## Installation
```sh
npm install -g @garygrossgarten/wach
```## Usage example
Enable sleep prevention ☕
```sh
wach enable
```
If you want to disable sleep prevention again 🛏
```sh
wach disable
```To get a report of all the current Power Management settings 🔋
```sh
wach report
```## Development setup
1. Clone the repository and cd into the directory
2. run `npm install`
3. run `npm run build`
4. run the application by using `node .` or `npm run start`## License
Distributed under the MIT license. See ``LICENSE`` for more information.
[https://github.com/garygrossgarten/wach](https://github.com/garygrossgarten/wach/)