Linux "xwininfo" Command Line Options and Examples
window information utility for X

Xwininfo is a utility for displaying information about windows. Various information is displayed depending on which options are selected. If no options are chosen, -stats is assumed.


Usage:

xwininfo [-help] [-id id] [-root] [-name name] [-int] [-children] [-tree] [-stats] [-bits] [-events] [-size]
    [-wm] [-shape] [-frame] [-all] [-english] [-metric] [-display display]






Command Line Options:

-help
Print out the `Usage:' command syntax summary.
xwininfo -help ...
-name
This option allows the user to specify that the window named name is the target window on the commandline rather than using the mouse to select the target window.
xwininfo -name ...
-children
This option causes the root, parent, and children windows' ids and names of the selected window to bedisplayed.
xwininfo -children ...
-tree
This option is like -children but displays all children recursively.
xwininfo -tree ...
-shape
This option causes the selected window's window and border shape extents to be displayed.
xwininfo -shape ...
-frame
This option causes window manager frames to be considered when manually selecting windows.
xwininfo -frame ...
-english
This option causes all individual height, width, and x and y positions to be displayed in inches (andfeet, yards, and miles if necessary) as well as number of pixels. -metric and -english may both beenabled at the same time.
xwininfo -english ...
-all
This option is a quick way to ask for all information possible.
xwininfo -all ...
-display
This option allows you to specify the server to connect to; see X(7).EXAMPLEThe following is a sample summary taken with no options specified:xwininfo: Window id: 0x60000f "xterm"Absolute upper-left X: 2Absolute upper-left Y: 85Relative upper-left X: 0Relative upper-left Y: 25Width: 579Height: 316Depth: 8Visual: 0x1eVisual Class: PseudoColorBorder width: 0Class: InputOutputColormap: 0x27 (installed)Bit Gravity State: NorthWestGravityWindow Gravity State: NorthWestGravityBacking Store State: NotUsefulSave Under State: noMap State: IsViewableOverride Redirect State: noCorners: +2+85 -699+85 -699-623 +2-623
xwininfo -display ...
-geometry
ENVIRONMENTDISPLAY To get the default host and display number.
xwininfo -geometry ...