2.1.0 • Published 6 years ago

screensaver-trigger v2.1.0

Weekly downloads
5
License
ISC
Repository
github
Last release
6 years ago

Screensaver trigger (for nodejs)

Version License Code style

Trigger a callback when user has not interacted with computer for a period of time, then wait for any interaction.

  • under win32, relies on MS Windows GetLastInputTime (through node winapi )
  • under linux, relies on node-x11

API

var screensaver = require('screensaver-trigger');

// start a screensaver after 10s on inactity

(function stuff(){

  screensaver(10 * 1000, function(){
    console.log("Screensaver start");

  }, function() {
    console.log("Screensaver end");

    stuff(); //do it again !
  })

})();

Credits

Keywords / shout box

screensaver, windows api, x11, GetLastInputInfo, activity monitor, inactivity trigger, idle timer

2.1.0

6 years ago

2.0.7

6 years ago

2.0.6

6 years ago

2.0.5

6 years ago

2.0.4

6 years ago

2.0.3

6 years ago

2.0.2

6 years ago

2.0.1

6 years ago

2.0.0

6 years ago