wmctrl

wmctrl help

help generated by wmctrl -h
Actions:

switchdescription
-mShow information about the window manager and about the environment.
-lList windows managed by the window manager.
-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.
( add | remove | toggle),prop1 [,prop2 ]

Add, remove, or toggle up to two window properties simultaneously
  1. modal
  2. sticky
  3. maximized_vert
  4. maximized_horz
  5. shaded
  6. skip_taskbar
  7. skip_pager
  8. hidden
  9. fullscreen
  10. above
  11. below

Following example will toggle window with title 'Notes - Zim' above other windows.
wmctrl -b toggle,shaded -r 'Notes - Zim'

-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.

Options:

switchdescription
-iInterpret <WIN> as a numerical window ID.
wmctrl -ir 0x06600031 -T "D78"
The hexadecimal string '0x06600031' is the intifier found using option -l above.
-GInclude geometry in the window list.
-FModifies 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.
-vBe verbose. Useful for debugging.

Leave a Reply

Your email address will not be published. Required fields are marked *