https://github.com/sindresorhus/active-win-cli https://www.npmjs.com/package/iohook
every 5s, we will see if you have been active at all in the last 5 seconds. Any single mouse or keyboard activity will be treated as active.
if you have been inactive for more then 5 mins, your task will be paused?