GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - sindresorhus/windows-cli: Get metadata about the active window (title, id, bounds, owner, URL, etc)

BranchesTags
Open more actions menu

Latest commit

 

History

18 Commits
18 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
.editorconfig
.editorconfig
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
.npmrc
.npmrc
 
 
cli.js
cli.js
 
 
license
license
 
 
package.json
package.json
 
 
readme.md
readme.md
 
 
test.js
test.js
 
 

Repository files navigation

windows-cli

Get metadata about the active window (title, id, bounds, owner, URL, etc)

Works on macOS 10.14+, Linux, and Windows 7+.

Install

npm install --global windows-cli

Usage

$ active-window --help

  Usage
    $ active-window [property]

    Returns title, id, app, pid, or the specified property

  Examples
    $ active-window
    npm install
    54
    Terminal
    368
    $ active-window app
    Terminal

Tip

You can use the id property with the builtin screencapture CLI tool to screenshot the active window:

screencapture -l$(active-window id) screenshot.png

Related

  • get-windows - API for this package

About

Get metadata about the active window (title, id, bounds, owner, URL, etc)

Resources

Readme
MIT license

Code of conduct

Code of conduct

Contributing

Contributing
Activity

Stars

71 stars

Watchers

3 watching

Forks

5 forks
Report repository

Releases

Sponsor this project

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.