Node/Electron module to detect idle desktop user (OSX, Windows and Linux)
npm install desktop-idle-prebuiltNode/Electron module to detect idle desktop users (OSX, Windows and Linux).
Stable | Actively maintained | Pull Requests Welcome
_Forked and inspired from node-system-idle-time_
npm install --save desktop-idle
or yarn
yarn add desktop-idle
`$3
* Windows: GetLastInputInfo.aspx), see src/win/idle.cc.
* Mac(OSX): CoreGraphics Event Source, see src/mac/idle.cc.
* Linux: X Screensaver, see src/linux/idle.cc.$3
`
var desktopIdle = require('desktop-idle');
console.log(desktopIdle.getIdleTime());
`$3
X server development package and pkg-config are required:
apt install libxss-dev pkg-config$3
`
yarn test
`$3
>
MIT - Bithavoc