active-win-cli
Get the title/id/etc of the active window.
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
Loading reviews…
Similar apps
Terminals & CLI
npm-user-cli
Get user info of a npm user.
Terminals & CLI
battery-level-cli
Get current battery level.
Terminals & CLI
get-port-cli
Get an available port.
Terminals & CLI
pkg-dir-cli
Find the root directory of a npm package.
Display & Accessibility
wallpaper-cli
Get or set the desktop wallpaper.
Terminals & CLI
fkill-cli
Simple cross-platform process killer.