IT lexicon › Infra & Ops › xprop

xprop

Infra & Ops På svenska → Updated: 2026-10-07

The command that turns the mouse pointer into a crosshair and prints everything X knows about the window you click.

Every window in X11 carries properties: named values, identified by atoms, that programs and window managers use to talk to each other. xprop lists them. Out come WM_CLASS, WM_NAME, _NET_WM_PID and the rest of what ICCCM and EWMH prescribe, in whatever order the server happens to return them.

In practice it is mostly run to find WM_CLASS, which nearly every window manager needs for window rules — "always open this one on workspace 3". With -spy it follows changes live, and -set writes properties yourself. It is the sibling of xev: one shows what happens, the other shows what is.

← Back to the lexicon