wmctrl:tldr:3e990
wmctrl: Select a window a move it to a workspace.
$ wmctrl -r ${window_title} -t ${workspace_number}
try on your machine
The command "wmctrl -r ${window_title} -t ${workspace_number}" is used to move a window with a specific title to a given workspace number in X Window System.
Here is the breakdown of the command components:
- "wmctrl": It is a command-line tool used to interact with EWMH/NetWM-compatible X window managers.
- "-r ${window_title}": This option specifies the window to be operated on, based on its title.
- ${window_title}: It represents the title of the window that you want to target.
- "-t ${workspace_number}": This option specifies the workspace where the window should be moved.
- ${workspace_number}: It represents the number of the workspace where you want to place the targeted window.
By combining these components, the command allows you to select a window based on its title and move that window to a specific workspace in X Window System.
This explanation was created by an AI. In most cases those are correct. But please always be careful and
never run a command you are not sure if it is safe.