Node: Workspace Hooks, Next: , Previous: Pointer Motion Hooks, Up: Standard Hooks



Workspace Hooks

enter-workspace-hook Hook
leave-workspace-hook Hook
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.

add-to-workspace-hook Window Hook
remove-from-workspace-hook Window Hook
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-hook for each workspace.

workspace-state-change-hook Hook
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.

viewport-resized-hook Hook
Called when the number of rows and columns in each virtual workspace is changed.

viewport-moved-hook Hook
Called when the origin of the viewport into the virtual workspace is moved.

enter-flipper-hook Hook
leave-flipper-hook Hook
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, bottom indicating the edge in question.