https://github.com/maxgfr/unsleep
Executable which prevents sleeping mode
https://github.com/maxgfr/unsleep
executable node preventing-sleep typescript unsleep
Last synced: about 1 month ago
JSON representation
Executable which prevents sleeping mode
- Host: GitHub
- URL: https://github.com/maxgfr/unsleep
- Owner: maxgfr
- License: mit
- Created: 2022-12-03T14:23:07.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-04-10T18:28:17.000Z (about 2 years ago)
- Last Synced: 2024-04-14T11:31:51.013Z (about 2 years ago)
- Topics: executable, node, preventing-sleep, typescript, unsleep
- Language: TypeScript
- Homepage:
- Size: 42.6 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# unsleep
A simple utility tool to prevent your computer from sleeping by simulating mouse movements and clicks
## Installation
```sh
# Install globally
npm install -g unsleep
# Or use directly with npx without installing
npx unsleep
```
## Usage
```sh
unsleep [options]
```
### Options
| Option | Description |
| -------------------------------- | --------------------------------------------------- |
| `-V, --version` | Output the version number |
| `-a, --autoclick` | Enable auto clicker |
| `-ad, --autoclick-delay ` | Delay between auto clicks in ms |
| `-m, --mouse` | Enable mouse movement |
| `-md, --mouse-delay ` | Delay between mouse movements in ms (default: 5000) |
| `-h, --help` | Display help information |
## Examples
Basic usage (default mouse movement every 5 seconds):
```sh
unsleep
```
Enable auto clicking (short and long form):
```sh
unsleep -a
unsleep --autoclick
```
Set custom delay for mouse movements (short and long form):
```sh
unsleep -m -md 10000 # Move mouse every 10 seconds
unsleep --mouse --mouse-delay 10000
```
Enable auto clicking with custom delay (short and long form):
```sh
unsleep -a -ad 3000 # Click every 3 seconds
unsleep --autoclick --autoclick-delay 3000
```
Combined options (short and long form):
```sh
unsleep -m -md 8000 -a -ad 5000
unsleep --mouse --mouse-delay 8000 --autoclick --autoclick-delay 5000
```
## Why use unsleep?
- Keep your computer awake during long downloads
- Prevent screen locking during presentations
- Bypass inactivity timeouts on various applications
## License
MIT