Linux "xprop" Command Line Options and Examples
property displayer for X

For each of these properties, its value on the selected window or font is printed using the supplied format‐ ting information if any. If no formatting information is supplied, internal defaults are used. If a property is not defined on the selected window or font, "not defined" is printed as the value for that property.


Usage:

xprop [-help] [-grammar] [-id id] [-root] [-name name] [-frame] [-font font] [-display display] [-len n]
[-notype] [-fs file] [-remove property-name] [-set property-name value] [-spy] [-f atom format [dformat]]*
[format [dformat] atom]*






Command Line Options:

-help
Print out a summary of command line options.
xprop -help ...
-grammar
Print out a detailed grammar for all command line options.
xprop -grammar ...
-name
This argument allows the user to specify that the window named name is the target window on the com‐mand line rather than using the pointer to select the target window.
xprop -name ...
-font
This argument allows the user to specify that the properties of font font should be displayed.
xprop -font ...
-display
This argument allows you to specify the server to connect to; see X(7).
xprop -display ...
-len
n Specifies that at most n bytes of any property should be read or displayed.
xprop -len ...
-notype
Specifies that the type of each property should not be displayed.
xprop -notype ...
-fs
Specifies that file file should be used as a source of more formats for properties.
xprop -fs ...
-remove
Specifies the name of a property to be removed from the indicated window.
xprop -remove ...
-set
Specifies the name of a property and a property value, to be set on the indicated window.
xprop -set ...
-spy
Examine window properties forever, looking for property change events.
xprop -spy ...
-f
Specifies that the format for name should be format and that the dformat for name should be dformat.If dformat is missing, " = $0+\n" is assumed.DESCRIPTIONFor each of these properties, its value on the selected window or font is printed using the supplied format‐ting information if any. If no formatting information is supplied, internal defaults are used. If a propertyis not defined on the selected window or font, "not defined" is printed as the value for that property. If noproperty list is given, all the properties possessed by the selected window or font are printed.A window may be selected in one of four ways. First, if the desired window is the root window, the -rootargument may be used. If the desired window is not the root window, it may be selected in two ways on thecommand line, either by id number such as might be obtained from xwininfo, or by name if the window possessesa name. The -id argument selects a window by id number in either decimal or hex (must start with 0x) whilethe -name argument selects a window by name.The last way to select a window does not involve the command line at all. If none of -font, -id, -name, and
xprop -f ...