Skip to content

Node/Electron module to detect idle desktop user (OSX, Windows and Linux)

License

Notifications You must be signed in to change notification settings

web-pal/node-desktop-idle

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

desktop idle

Build status Build Status Monthly Downloads

Node/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

Installation

npm install --save desktop-idle
# or yarn
yarn add desktop-idle

Cross-Platform Support

Usage

var desktopIdle = require('desktop-idle');
console.log(desktopIdle.getIdleTime());

Linux Requirements

X server development package and pkg-config are required:

apt install libxss-dev pkg-config

Test

yarn test

License

MIT - Bithavoc<[email protected]>

About

Node/Electron module to detect idle desktop user (OSX, Windows and Linux)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 43.3%
  • C++ 38.7%
  • JavaScript 11.4%
  • Objective-C++ 6.6%