commands.sh

xwininfo

all

Display information about windows. See also: `xprop`, `xkill`.

More info →

Examples (5)

Display a cursor to select a window to display its attributes (id, name, size, position, ...)

Display the tree of all windows

xwininfo -tree -root

Display the attributes of a window with a specific ID

Display the attributes of a window with a specific name

xwininfo -name name

Display the ID of a window searching by name

xwininfo -tree -root | grep keyword | head -1 | perl -ne 'print $1 if /(0x[\da-f]+)/ig;'
made by @shridhargupta | data from tldr-pages