Ever need to temporarily prevent your Windows computer from going to sleep?
You might have heard of insomnia. It's super basic Windows desktop application that prevents Windows from going to sleep while it's running. It looks like it was originally written in 2009 and last updated in 2011. (Really, there's not much to maintain.) I've probably used insomnia that entire 10 year period as a way to temporarily prevent Windows from going to sleep. It's very handy, but I've always wished I could set it to run for a limited amount of time, rather than just indefinitely.
Recently, I used the Windows Task Scheduler to launch insomnia every weekday morning at 9:30am so that I could remote desktop into my home computer as needed. When I got home at night, I closed insomnia so my computer would sleep as normal. Except, I often forgot, and my computer would run all night long. Sufficiently motivated, I created NoDoz as a 'new & improved' version of insomnia.
For anyone wondering about the name, click here. :)
NOTE: NoDoz is intended to be run from the command line. However, you can also run the
exedirectly. If you installed using scoop, It can be found in [user]\scoop\apps\NoDoz[version]\NoDoz.exe. If you downloaded the zip, it's wherever you put it.
NoDoz: Starts NoDoz and runs indefinitely.
NoDoz -m: Starts NoDoz minimized to the system tray and runs indefinitely.
NoDoz -m -t 6h45m: Starts NoDoz minimized to the system tray and runs for 6 hours and 45 minutes.
Refer to the wiki for additional documentation.
Currently, NoDoz requires .NET Framework 4.6.1. (Sorry.) Once .NET Core 3 is released in a few months, I will probably re-release it as a self-contained application. (The GUI is created with Windows Forms, which won't be available without the full framework until .NET Core 3.)
Installation & Updates
Option 1: Scoop (Recommended)
- Install Scoop.
scoop checkupand install any dependencies it tells you about. (I found the documentation on this point less than clear.)
scoop install https://raw.githubusercontent.com/refactorsaurusrex/NoDoz/master/NoDoz.json
NoDozwith desired parameters.
- To update, run
scoop update NoDoz. If a new version is available, it will be automatically downloaded and installed.
Option 2: Download The Zip
If you choose the zip method, keep in mind that NoDoz.exe will not be automatically put on your path.
- Head over to the releases page.
- Download the zip for the latest version.
- Extract to a location of your choosing.
- To update, repeat starting at step 1. :p