From 1066bbf71919e5f1fee2cbb06dade941e8c74630 Mon Sep 17 00:00:00 2001 From: slashleo <37038834+slashleo@users.noreply.github.com> Date: Tue, 12 May 2020 18:40:11 +0200 Subject: [PATCH] wmctrl: add page (#4038) --- pages/linux/wmctrl.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 pages/linux/wmctrl.md diff --git a/pages/linux/wmctrl.md b/pages/linux/wmctrl.md new file mode 100644 index 000000000..d320a0894 --- /dev/null +++ b/pages/linux/wmctrl.md @@ -0,0 +1,27 @@ +# wmctrl + +> CLI for X Window Manager. + +- 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}}`