2020-05-12 17:40:11 +01:00
|
|
|
# wmctrl
|
|
|
|
|
|
|
|
> CLI for X Window Manager.
|
2021-10-05 04:35:50 +01:00
|
|
|
> More information: <https://manned.org/wmctrl>.
|
2020-05-12 17:40:11 +01:00
|
|
|
|
|
|
|
- List all windows, managed by the window manager:
|
|
|
|
|
|
|
|
`wmctrl -l`
|
|
|
|
|
|
|
|
- Switch to the first window whose (partial) title matches:
|
|
|
|
|
|
|
|
`wmctrl -a {{window_title}}`
|
|
|
|
|
|
|
|
- Move a window to the current workspace, raise it and give it focus:
|
|
|
|
|
|
|
|
`wmctrl -R {{window_title}}`
|
|
|
|
|
|
|
|
- Switch to a workspace:
|
|
|
|
|
|
|
|
`wmctrl -s {{workspace_number}}`
|
|
|
|
|
|
|
|
- Select a window and toggle fullscreen:
|
|
|
|
|
|
|
|
`wmctrl -r {{window_title}} -b toggle,fullscreen`
|
|
|
|
|
|
|
|
- Select a window a move it to a workspace:
|
|
|
|
|
|
|
|
`wmctrl -r {{window_title}} -t {{workspace_number}}`
|