Skip to content

About

IntelliJ Platform plugin to keep your system awake during long running tasks.

Topics

Resources

Stars

3 stars

Watchers

1 watching

Forks

Latest commit

 

History

29 Commits

Folders and files

Repository files navigation

Insomniac

An IntelliJ IDEA plugin that prevents your system from sleeping while a long-running task is active in your IntelliJ Platform IDE.

Too often I have started a full rebuild of a big project or an inspection run, went for coffee, and twenty minutes later when I came back: my laptop has gone into sleep mode and the task is only half finished. To prevent this from happening, I built this plugin. It keeps the system awake when it detects a task that has been active for more than one-and-a-half minute. Zero user interface, just set it and forget it.

On the Mac NSProcessInfo is used to prevent sleep. It is also possible to fall back to the built-into-the-OS tool Caffeinate, by unsettings the registry key insomniac.mac.native.sleep.blocker checkbox. On Windows the OS SetThreadExecutionState function is called. And on Linux the mouse is wiggled by one pixel (if you know of a better way, let me know or send a pull request).

About

IntelliJ Platform plugin to keep your system awake during long running tasks.

Topics

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Contributors

Languages