LinuxCommandLibrary

xwininfo

Display X11 window information

TLDR

Get window info by clicking

$ xwininfo
copy
Get root window info
$ xwininfo -root
copy
Get by window ID
$ xwininfo -id [0x12345]
copy
Get by name
$ xwininfo -name "[Window Name]"
copy
Show tree
$ xwininfo -root -tree
copy
Stats only
$ xwininfo -stats
copy

SYNOPSIS

xwininfo [-root] [-id wid] [-name name] [options]

DESCRIPTION

xwininfo displays detailed information about X11 windows, including geometry (size and position), window ID, depth, visual class, and colormap. When run without arguments, it presents a crosshair cursor for interactive window selection by clicking.
Specific windows can be targeted using -id for a window ID, -name for a window title, or -root for the root window. The -tree option displays the complete window hierarchy, showing how windows are nested within each other. The tool is commonly used for debugging window managers and scripting X11 window operations.

PARAMETERS

-root

Root window.
-id WID
Window ID.
-name NAME
Window name.
-tree
Show tree.
-stats
Statistics.
-all
All info.

CAVEATS

X11 only. No Wayland. Part of xorg-apps.

HISTORY

xwininfo is a standard X11 utility for displaying information about windows.

SEE ALSO

xprop(1), xdotool(1), xlsclients(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community