xprop command_examples
xprop – property displayer for X
To display the name of the root window:
xprop -root WM_NAME
To display the window manager hints for the clock:
xprop -name xclock WM_HINTS
To display the start of the cut buffer:
xprop -root -len 100 CUT_BUFFER0
To display the point size of the fixed font:
xprop -font fixed POINT_SIZE
To display all the properties of window # 0x200007:
xprop -id 0x200007
To set a simple string property:
xprop -root -format MY_ATOM_NAME 8s -set MY_ATOM_NAME "my_value"