Skip to content

sendtowsbyname

Bakkeby edited this page Feb 27, 2024 · 2 revisions
Function Expected argument Default keybinding
sendtowsbyname string (workspace name) Super+Ctrl+<number>

The sendtowsbyname function moves the currently active window to the workspace with a given name.

The default configuration is such that the keybinding of Super+Ctrl+6 will move the selected window to workspace number 6.

This function differs from the movetowsbyname function in that it toggles the ViewOnWs functionality before and after the client has been moved.

This means that if you have the ViewOnWs functionality enabled and using the movetowsbyname function then the view is also moved to the workspace the client is being moved to. Some times you may want to just send clients away hence this function which avoids changing the view when sending clients to another workspace.

If you have the ViewOnWs functionality disabled then using this function the view will also be moved to the workspace the client is being moved to. In other words the two functions are identical except for the inverted ViewOnWs functionality.

External command:

$ duskc run_command sendtowsbyname "6"  # move the selected client to workspace 6

Also see clienttomon and movetowsbyname.

Back to Functions > Workspace.

Clone this wiki locally