Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stchan/stopsnooze
Console app that stops Windows from sleeping
https://github.com/stchan/stopsnooze
power powermanagement sleep windows
Last synced: about 1 month ago
JSON representation
Console app that stops Windows from sleeping
- Host: GitHub
- URL: https://github.com/stchan/stopsnooze
- Owner: stchan
- License: gpl-3.0
- Created: 2022-05-10T01:59:54.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-02-24T02:27:06.000Z (almost 2 years ago)
- Last Synced: 2023-03-15T15:45:21.588Z (almost 2 years ago)
- Topics: power, powermanagement, sleep, windows
- Language: C#
- Homepage:
- Size: 57.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: COPYING
Awesome Lists containing this project
README
**StopSnooze** is a console application which prevents Windows from sleeping.
**Requirements**
64-bit Windows 8 (or newer)**Binaries**
Check the [releases](https://github.com/stchan/StopSnooze/releases) page for prebuilt executables.**License**
StopSnooze is GPLv3.**Usage:**
```
StopSnooze [-d] [{-p PID | -x COMMAND}] [-w TIME]
```
Options:-d, --display Allows the display to sleep
-p, --pid Wait on process. Mutually exclusive with -x
-x, --shx Execute command, then wait on spawned process.
Mutually exclusive with -p
-w, --wait Wait for specified number of seconds**Examples:**
```
StopSnooze -w 60
```
Prevents sleep for 60 seconds.
```
StopSnooze -p 2942
```
Prevents sleep while process with PID 2942 is running.
```
StopSnooze -p 2942 -w 60
```
Prevents sleep while process with PID 2942 is running, or for up to 60 seconds, whichever is shorter.
```
StopSnooze -x "notepad.exe"
```
Starts "notepad.exe", and prevents sleep while it is running.
```
StopSnooze -x "notepad.exe" -w 60
```
Starts "notepad.exe", and prevents sleep while it is running, or for up to 60 seconds, whichever is shorter.
```
StopSnooze -x "cmd /k"
```
Starts a new shell, and prevents sleep until it exits.
```
StopSnooze
```
Prevents sleep until the user presses any key, or terminates the shell.
```
StopSnooze -d
```
Prevents system sleep, but allows the display to sleep, until the user presses any key, or terminates the shell. May be combined with other options.
**Changelog**1.0.6 - Added **-d/--display** option.
1.0.5 - No new functionality, removed single file trimming.
1.0.4 - Fixed issue with parsing **-x/--shx** option.
1.0.3 - Renamed to StopSnooze. NoSnooze is a brand of caffeine pills sold by Circle K in the USA.
1.0.2 - First public release as NoSnooze.