Skip to content

andrewlock/sleep-pc

Repository files navigation

💤 sleep-pc

A .NET tool for sending a Windows laptop to sleep.

Install with:

dotnet tool install -g sleep-pc

and run with

sleep-pc
Usage: [options...] [-h|--help] [--version]

Waits for the provided number of seconds before sending the computer to sleep

Options:
  -s|--seconds|--sleep-delay-seconds <uint>    The time in seconds before the computer is put to sleep. Defaults to 1 hour (Default: 3600)
  --dry-run                                    If true, prints a message instead of sleeping (Optional)

Alternatively, with the .NET 10 SDK, run using:

dnx sleep-pc

About

A .NET tool for sending a Windows laptop to sleep

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages