VibeHunt
Back to browse

active-win-cli

Get the title/id/etc of the active window.

Source

active-win-cli is a command‑line utility that reports metadata of the currently focused window on a desktop system. It can output the window’s title, identifier, owning application name, process ID, screen bounds, and other properties such as a URL when applicable. The tool works across macOS 10.14 and later, Linux distributions that support the underlying get‑windows library, and Windows 7 and newer.

Developers and script authors can invoke the program directly from a shell, supplying an optional property name to retrieve a single value, or omitting it to receive a default set of fields. The output is plain text, making it easy to pipe into other command‑line tools; for example, the window ID can be passed to the built‑in `screencapture` command to capture a screenshot of the active window.

The package is distributed via npm and can be installed globally, providing a stable, cross‑platform interface for accessing active‑window information without requiring additional libraries or GUI components.

Reviews

Sign in to leave a review.

Loading reviews…

Similar apps