0.1.38 • Published 4 months ago

mezon-active-windows v0.1.38

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

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

4 months ago

0.1.37

4 months ago

0.1.36

4 months ago

0.1.35

4 months ago

0.1.34

4 months ago

0.1.33

4 months ago

0.1.32

4 months ago

0.1.31

5 months ago

0.1.30

5 months ago

0.1.29

5 months ago

0.1.28

5 months ago

0.1.27

5 months ago

0.1.26

5 months ago

0.1.25

6 months ago

0.1.24

6 months ago

0.1.23

6 months ago

0.1.22

6 months ago

0.1.21

6 months ago

0.1.20

6 months ago

0.1.19

6 months ago

0.1.18

6 months ago

0.1.17

6 months ago

0.1.16

6 months ago

0.1.15

6 months ago

0.1.14

6 months ago