Next: Startup and Shutdown Hooks, Previous: Pointer Motion Hooks, Up: Standard Hooks
Called when switching from one workspace to another. This includes switching caused by adding or removing a workspace. The hook is called with a list containing the workspace in question.
Called when a window is added or removed from a workspace. In addition to the window, the hook is called with a list containing the workspace being changed. If the window is in multiple workspaces, then removing triggers
remove-from-workspace-hookfor each workspace.
Called when any aspect of the workspaces change, including adding a workspace, removing a workspace, moving a workspace, inserting or removing a window from a workspace, etc. This hook is called with no arguments, so you should use one of the more specific hooks if possible.
Called when the number of rows and columns in each virtual workspace is changed.
Called when the origin of the viewport into the virtual workspace is moved.
When viewport edge-flipping is enabled, these hooks are called as the pointer enters and leaves the pixel-wide border on the edge of the screen. They're called with a single argument, one of the symbols
left,right,top,bottomindicating the edge in question.