Command-line tool
xwininfo
brew/xwininfo
Checked 25 Oct 2026, 21:09 UTC · Listing refreshed from Homebrew, winget, npm, Scoop and cargo; npm packages checked against OSV.dev
Print information about windows on an X server
At a glance
- Type
- Command-line tool
- Install on
- macOS, Linux
- Last checked
- 25 Oct 2026, 21:09 UTC
Install it
macOS
brew install xwininfo
Linux
brew install xwininfo
Display a cursor to select a window to display its attributes (id, name, size, position, ...)
xwininfo
Display the tree of all windows
xwininfo -tree -root
Display the attributes of a window with a specific ID
xwininfo -id window_id
Related command-line tools
- xkill
Kill a window interactively in a graphical session. - pngcheck
Print info and check PNG, JNG, and MNG files - ledger
Command-line, double-entry accounting tool - gops
Tool to list and diagnose Go processes currently running on your system - clinfo
Print information about OpenCL platforms and devices - hf
Client library for huggingface.co hub - you-get
Dumb downloader that scrapes the web - inxi
Full featured CLI system information tool
Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents