wmctrl 1.07 man page.
Remember kids, a man page is not documentation.
Usage: wmctrl [OPTION]... Actions: -m Show information about the window manager and about the environment. -l List windows managed by the window manager. -d List desktops. The current desktop is marked with an asterisk. -s <desk> Switch to the specified desktop. -a <win> Activate the window by switching to its desktop and raising it. -c <win> Close the window gracefully. -R <win> Move the window to the current desktop and activate it. -r <win> -t <desk> Move the window to the specified desktop. -r <win> -e <mvarg> Resize and move the window around the desktop. The format of the <mvarg> argument is described below. -r <win> -b <starg> Change the state of the window. Using this option it's possible for example to make the window maximized, minimized or fullscreen. The format of the <starg> argument and list of possible states is given below. -r <win> -N <str> Set the name (long title) of the window. -r <win> -I <str> Set the icon name (short title) of the window. -r <win> -T <str> Set both the name and the icon name of the window. -k (on|off) Activate or deactivate window manager's "showing the desktop" mode. Many window managers do not implement this mode. -o <x>,<y> Change the viewport for the current desktop. The X and Y values are separated with a comma. They define the top left corner of the viewport. The window manager may ignore the request. -n <num> Change number of desktops. The window manager may ignore the request. -g <w>,<h> Change geometry (common size) of all desktops. The window manager may ignore the request. -h Print help. Options: -i Interpret <win> as a numerical window ID. -p Include PIDs in the window list. Very few X applications support this feature. -G Include geometry in the window list. -x Include WM_CLASS in the window list or interpret <win> as the WM_CLASS name. -u Override auto-detection and force UTF-8 mode. -F Modifies the behavior of the window title matching algorithm. It will match only the full window title instead of a substring, when this option is used. Furthermore it makes the matching case sensitive. -v Be verbose. Useful for debugging. -w <wa> Use a workaround. The option may appear multiple times. List of available workarounds is given below. Arguments: <win> This argument specifies the window. By default it's interpreted as a string. The string is matched against the window titles and the first matching window is used. The matching isn't case sensitive and the string may appear in any position of the title. The -i option may be used to interpret the argument as a numerical window ID represented as a decimal number. If it starts with "0x", then it will be interpreted as a hexadecimal number. The special string ":SELECT:" (without the quotes) may be used to instruct wmctrl to let you select the window by clicking on it. The special string ":ACTIVE:" (without the quotes) may be used to instruct wmctrl to use the currently active window for the action. <desk> A desktop number. Desktops are counted from zero. <mvarg> Specifies a change to the position and size of the window. The format of the argument is: <g>,<x>,<y>,<w>,<h> <g>: Gravity specified as a number. The numbers are defined in the EWMH specification. The value of zero is particularly useful, it means "use the default gravity of the window". <x>,<y>: Coordinates of new position of the window. <w>,<h>: New width and height of the window. The value of -1 may appear in place of any of the <x>, <y>, <w> and <h> properties to left the property unchanged. <starg> Specifies a change to the state of the window by the means of _NET_WM_STATE request. This option allows two properties to be changed simultaneously, specifically to allow both horizontal and vertical maximization to be altered together. The format of the argument is: (remove|add|toggle),<prop1>[,<prop2>] The EWMH specification defines the following properties: modal, sticky, maximized_vert, maximized_horz, shaded, skip_taskbar, skip_pager, hidden, fullscreen, above, below Workarounds: DESKTOP_TITLES_INVALID_UTF8 Print non-ASCII desktop titles correctly when using Window Maker. The format of the window list: <window ID> <desktop ID> <client machine> <window title> The format of the desktop list: <desktop ID> [-*] <geometry> <viewport> <workarea> <title>
Last updated 2017-12-18 at 10:25:11