Nectar of the Programming Masses
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    active-apppublic

    active-app

    Detect the active window/application on Linux (X11) and hopefully more platforms in the future...

    Anyone with experience in Windows/OSX development, I'd appreciate some help adding support to this module

    Install

    $ npm install active-app
    

    Usage

    const activeApp = require('active-app')
     
    activeApp((err, app) => {
      if (err) {
        return console.error(err)
      }
     
      console.log(app)
    })
     
    // { desktopNumber: 0,
    //   processId: 12685,
    //   xOffset: 106,
    //   yOffset: 85,
    //   width: 1547,
    //   height: 1715,
    //   machineName: 'bxps',
    //   psName: 'gnome-terminal-',
    //   cmdline: '/usr/lib/gnome-terminal/gnome-terminal-server',
    //   windowTitle: 'watch node index.js' }

    Licence

    MIT © Ben Evans

    install

    npm i active-app

    Downloadsweekly downloads

    1

    version

    1.0.0

    license

    MIT

    repository

    githubgithub

    last publish

    collaborators

    • avatar