A tool for sending your windows laptop to sleep after a given time
$ dotnet add package sleep-pcA .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