Skip to content

NOWWORKINGON

xprop

zie man xprop
utility for :
- displaying window and font properties in an X server.
- and for managing some window prop’s (remove / set actions)
- spy tool (monitoring)

nomal use is to use the mouse to click on a visible
however :
-id id
This argument allows the user to select window id on the command line rather than using the pointer to select the target window.
( => invisible windows , automation)

display all the properties of window : xprop -id 0x200007

wid=$(wmctrl -l | grep 'Mousepad' | cut -d " " -f 1 )
# echo $wid
xprop -id $wid

#== OR ===
xprop -id $(wmctrl -l | grep 'Mousepad' | cut -d " " -f 1 )

remove titlebar from a window

generic way to remove an X-window titlebar that should work on any DE
=> run below comand in a terminal, and then click on the window:

Hide title bar

xprop -f _MOTIF_WM_HINTS 32c -set _MOTIF_WM_HINTS "0x2, 0x0, 0x2, 0x0, 0x0"

Show title bar

xprop -f _MOTIF_WM_HINTS 32c -set _MOTIF_WM_HINTS "0x2, 0x0, 0x1, 0x0, 0x0"

This can be :
- assigneed to global keyboard shortcut : shuch as f.i. Meta-Shift-w
- scripted, check the xprop manual to see how to specify specific windows:
( https://forums.linuxmint.com/viewtopic.php?t=300908 )

remove titlebar from a specific window

xprop -id $(wmctrl -l | grep 'Mousepad' | cut -d " " -f 1 ) -f _MOTIF_WM_HINTS 32c -set _MOTIF_WM_HINTS "0x2, 0x0, 0x2, 0x0, 0x0"