movewsdir - bakkeby/dusk GitHub Wiki

Function Expected argument Default keybindings
movewsdir 1, -1 or 2, -2 Listed separately further down

The movewsdir function is used to move a client to the workspace on the immediate left or the immediate right of the active workspace.

The function can also skip workspaces that do not have any clients on them.

There are a few general rules that apply here:

  • the operation wraps around, i.e. going left from the first workspace will bring you to the last and vice versa
  • the operation is isolated to workspaces presently associated with the focused monitor and
  • the operation only applies to the currently active workspace

The latter means that if multiple workspaces are viewed on a monitor then the view will revert to a single workspace relative to the active workspace if the ViewOnWs functionality is enabled.

The arguments passed to the function are interpreted as:

  • a positive number means move the client right (clockwise)
  • a negative number means move the client left (counter-clockwise)
  • a 1 means move the client to the workspace immediately adjacent to the current workspace
  • a 2 means move the client to the next workspace that has clients
Default keybindings Description
Super+Ctrl+Alt+comma View the workspace on the immediate left of current workspace
Super+Ctrl+Alt+period View the workspace on the immediate right of current workspace

External commands:

duskc run_command movewsdir -1  # move client to the workspace on the immediate left of current workspace
duskc run_command movewsdir 1   # move client to the workspace on the immediate right of current workspace
duskc run_command movewsdir -2  # move client to the next workspace left of current workspace that has clients
duskc run_command movewsdir 2   # move client to the next workspace right of current workspace that has clients

Also see the viewwsdir function.

Back to Functions > Workspaces.

⚠️ **GitHub.com Fallback** ⚠️