Sawfish has various functions to create, rearrage and delete workspaces. Windows in a deleted workspace are not lost; they are moved to another workspace.
Activate workspace space, making it current.
By default in
click focus modes, the most
recently used window will receive focus. The caller can disable this
behavior by passing a true dont-focus keyword argument.
If the force keyword argument is true, we will go through the activation process even if space already is current.
Select the workspace in position count from the list of “interesting” workspaces.
Select workspace space and then switch to viewport
(col, row) in that workspace.
Insert a new workspace, returning its index. The new index appears
after the workspace indicated by after, or the current
workspace if after is
Create a new workspace following the current workspace.
Create a new workspace preceeding the current workspace.
Move the workspace space count positions forward, or count positions backwards if count is negative.
Move the current workspace one place to the right (or count places to the right if count is defined).
Move the current workspace one place to the left (or count places to the left if count is defined).
Switch from the current workspace (index i) to the workspace
previous-workspace function is
(next-workspace (- count)).
These functions do not have default values for their count arguments.
Remove workspace index (or the current workspace if index
nil). All windows in that workspace are moved to the next
workspace index+1. This will change the set of “interesting”
Delete the current workspace. Its member windows are relocated to the next workspace.
Delete the current workspace. Its member windows are relocated to the previous workspace.
Add or remove workspaces until the number of “interesting” workspaces is equal to wanted.
When adding workspaces, the new workspaces get indices higher than any existing indices. When removing workspaces, the lowest workspaces are always chosen for removal (their windows are merged into the new lowest-index workspace).
When true, preserve the outermost empty workspaces in the pager. Don’t quietly remove them when they become empty. Defaults to true.