0.1.38 • Published 7 months ago
mezon-active-windows v0.1.38
Mezon Active Window
Node C++ N-API module to get information on the currently selected window and the user idle time on Linux, MacOS and Windows.
Currently only supports Windows and Linux / Xorg.
Work in progress. Not on every platform all information are supported.
Building / Installation
npm install
Usage
const activeWindows = require('active-windows');
console.log(activeWindows.getActiveWindow());
See sample.js
for more information.
Return-Value
{
// Operating system (linux | windows | macos)
os: 'linux',
// Process name (chromium.exe on windows)
windowClass: 'chromium',
// Blog | bytee.net
windowName: 'Blog | bytee.net - Chromium',
// Desktop on which the window is displayed (Linux only)
windowDesktop: '2',
// Window Type (Linux only)
windowType: '340',
// Process ID of the window
windowPid: '34218',
// Idle Time in seconds
idleTime: '42',
}
{
os: 'macos',
windowClass: 'Visual Studio Code',
windowName: '',
windowDesktop: '0',
windowType: '0',
windowPid: '279',
idleTime: '0'
}
Build linux
yarn config set nodedir ~/.cache/node-gyp/18.19.0
0.1.38
7 months ago
0.1.37
7 months ago
0.1.36
7 months ago
0.1.35
7 months ago
0.1.34
7 months ago
0.1.33
7 months ago
0.1.32
7 months ago
0.1.31
7 months ago
0.1.30
7 months ago
0.1.29
7 months ago
0.1.28
7 months ago
0.1.27
7 months ago
0.1.26
7 months ago
0.1.25
9 months ago
0.1.24
9 months ago
0.1.23
9 months ago
0.1.22
9 months ago
0.1.21
9 months ago
0.1.20
9 months ago
0.1.19
9 months ago
0.1.18
9 months ago
0.1.17
9 months ago
0.1.16
9 months ago
0.1.15
9 months ago
0.1.14
9 months ago