Skip to content
This repository has been archived by the owner on Sep 9, 2021. It is now read-only.
/ win-caffeinate Public archive

A port of caffeinate command from macOS to Windows

License

Notifications You must be signed in to change notification settings

iorate/win-caffeinate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

win-caffeinate

A port of caffeinate command from macOS to Windows. It can prevent the display and system from idle sleeping.

Example

$ caffeinate make

caffeinate executes make and prevents the system from sleeping while make is running.

$ caffeinate -dit3600

caffeinate prevents the display and system from sleeping for 3600 seconds.

Requirements

To run it, Windows 7 or later is required. To build it, a compiler that supports C++14 is required.

Usage

$ caffeinate --help
Usage: caffeinate [OPTION...] [UTILITY...]
  prevent the system from sleeping

Options:
  -h         --help            display this help and exit
  -v         --version         display the version info and exit
  -d         --display         prevent the display from sleeping
  -i         --system-idle     prevent the system from idle sleeping (default)
  -t PERIOD  --timeout=PERIOD  specify the timeout value in seconds
  -w PID     --wait=PID        wait for the process with the specified pid to
                               exit

Author

iorate (Twitter)

License

Boost Software License 1.0

About

A port of caffeinate command from macOS to Windows

Resources

License

Stars

Watchers

Forks

Packages

No packages published