Skip to content

Dispatchers

A Dispatcher is a function that performs some actions. Functions under yabe.dispatchers generate a Dispatcher function and return its ID (DispatcherID). For example, yabe.dispatchers.set_workspace(2) returns a DispatcherID that switches to workspace 2.

You can use a DispatcherID to register a Keybind. To fire a Dispatcher immediately (e.g., in Event handlers), use yabe.dispatch(DispatcherID).

Set the current workspace by absolute index

parameters:
  1. index: integer

Add to the current workspace index (can be negative)

parameters:
  1. delta: integer

Point the ray horizontally in the current head direction

Make the current head direction the front

Execute a shell command via `sh -c`

parameters:
  1. command: string