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

nealie/node-desktop-idle

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

desktop idle

Build status Build Status Monthly Downloads

Node/Electron module to detect idle desktop users (OSX, Windows, Linux and FreeBSD).

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 54.1%
  • C++ 31.3%
  • JavaScript 9.2%
  • Objective-C++ 5.4%