Provides seconds since the user was last active
npm install afk
var afk = require('afk');
var seconds = 10;
var listenerId = afk.addListener(seconds, function(e) {
console.log(e)
afk.removeListener(e.id);
})
Linux support requires xprintidle otherwise returns 0