-
Notifications
You must be signed in to change notification settings - Fork 23
sendtowsbyindex
Function | Expected argument | Default keybinding |
---|---|---|
sendtowsbyindex | int (workspace index) | N/A |
The sendtowsbyindex
function moves the currently active window to the nth workspace on the
current monitor.
There are no default configuration options for this function, but it can be used to replace the
default behaviour of the WSKEYS
macro. Refer to this
guide for more details.
This function differs from the movetowsbyindex 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 movetowsbyindex
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 sendtowsbyindex "6" # move the selected client to the 6th workspace
Also see clienttomon and movetowsbyindex.
Concepts | Configuration | Features | Flags | Functionality | Functions