Skip to content

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

Notifications You must be signed in to change notification settings

BasLeijdekkers/Insomnimac

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 

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 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 detects tasks that are active for more than one-and-a-half minutes, and when it has found one, keeps the system awake. Zero user interface, just set it and forget it.

On the Mac NSProcessInfo is used to prevent sleep. To prevent sleep, on the Mac the built-in-the-OS tool caffeinate is used. 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

Watchers

Forks

Languages