A command for Windows that performs the "opposite" of win-caffeinate. It can put the display and system to sleep.
$ decaffeinate -d
decaffeinate
puts the display to sleep.
$ decaffeinate -t 3600
decaffeinate
puts the system to sleep and awakes it in 3600 seconds.
To build it, a compiler that supports C++17 is required.
$ decaffeinate --help
Usage: decaffeinate [OPTION...]
put the system to sleep
Options:
-h --help display this help and exit
-v --version display the version info and exit
-d --display put only the display to sleep
-t PERIOD --timeout=PERIOD specify the timeout value in seconds