Display a cursor to select a window to display its attributes (id, name, size, position, ...)
Display the tree of all windows
Display the attributes of a window with a specific ID
Display the attributes of a window with a specific 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;'