xwininfo
Display information about windows. tldr-pages
On several platforms
Several platforms
Display a cursor to select a window to display its attributes (id, name, size, position, ...)
xwininfoIdentifyDisplay the tree of all windows
xwininfo -tree -rootIdentifyDisplay the attributes of a window with a specific ID
xwininfo -id window_idIdentifyDisplay the attributes of a window with a specific name
xwininfo -name nameIdentifyDisplay the ID of a window searching by name
xwininfo -tree -root | grep keyword | head -1 | perl -ne 'print $1 if /(0x[\da-f]+)/ig;'Identify