Forrest logo
back to the xprop tool

xprop:tldr:8d6cb

xprop: Display the window manager hints for a window.
$ xprop -name "${window_name}" WM_HINTS
try on your machine

The command you provided, "xprop -name "${window_name}" WM_HINTS", is used to retrieve the window manager hints for a specific window.

Let's break down the different components of the command:

  1. "xprop": This is a utility command in the X Window System that allows users to interact with window properties. It is used to retrieve or set various properties of a window.

  2. "-name "${window_name}"" : This is an option in the xprop command that specifies the window to operate on, using its name. The "${window_name}" is a placeholder for the actual name of the window. You would need to replace it with the specific window name you want to retrieve the hints for.

  3. "WM_HINTS": This is the name of the property being retrieved. In this case, it refers to the window manager hints. These hints provide information to the window manager about how to handle the window, such as the initial state, window decorations, or input-related preferences.

By running the command, the window manager hints for the designated window will be displayed in the terminal.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the xprop tool