sending a window manager command?

Chris Green cl at
Mon Dec 26 23:28:50 CET 2011

On Sun, Dec 25, 2011 at 08:42:58PM +0100, Ulli Horlacher wrote:
> I want to send a window manager command to a certain window via shell
> script.
> On Ubuntu I found:
>   Wmctrl is a command line tool to interact with an EWMH/NetWM compatible
>   X Window Manager (examples include Enlightenment, icewm, kwin, metacity,
>   and sawfish).
>   Wmctrl provides command line access to almost all the features defined
>   in the EWMH specification. For example it can maximize windows, make
>   them sticky, set them to be always on top. It can switch and resize
>   desktops and perform many other useful operations.
> I testet it then with:
> wmctrl -l
> wmctrl -r 0x03200024 -b toggle,fullscreen # 0x03200024 is my xterm
> But it does nothing.
> Is wmctrl not compatible with xfce?
> Is there another solution?
I use wmctrl on my xubuntu system so it certainly works with xfce.

Doesn't the '-b toggle' in wmctrl need *two* properties after it?  Maybe
not, the man page isn't incredibly clear.

Chris Green

More information about the Xfce mailing list