Run Yabai window management commands directly from Raycast.
To use this extension, you must have yabai installed on your machine.
The easiest way to install this is using Homebrew. After you have Homebrew installed, run the following command in your terminal:
brew install koekeishiya/formulae/yabai
Official installation instructions
To enable the desktop indicator in the MenuBar, you need to add a specific command to your yabairc configuration file.
Please add the following line to your yabairc file:
yabai -m signal --add event=space_changed action="nohup open -g raycast://extensions/krzysztoff1/yabai/screens-menu-bar?launchType=background > /dev/null 2>&1 &"
This command will allow the Raycast extension to run in the background and update the menubar indicator whenever you switch desktop spaces.
After adding this line, make sure to reload your yabairc configuration or restart yabai for the changes to take effect.
Run custom Yabai command
Update the status information about the currently selected screen.
Show the application of the current space.
This command will start Yabai using `yabai --start-service` or stop it using `yabai --stop-service`.
Rotate the tree 90 degrees clockwise.
Mirror the tree on the X axis.
Mirror the tree on the Y axis.
Balance the windows.
Restart yabai service.
Start yabai service.
Stop yabai service.
Switch to BSP layout for the current space.
Switch to stack layout for the current space.
Switch to float layout for the current space.
Creates a new workspace and focuses it.
Focuses the specified space.
Destroys the currently focused space.
Focus the window to the north of the currently focused window.
Focus the window to the south of the currently focused window.
Focus the window to the east of the currently focused window.
Focus the window to the west of the currently focused window.
Swap window position and size with window to the north of the active window.
Swap window position and size with window to the south of the active window.
Swap window position and size with window to the east of the active window.
Swap window position and size with window to the west of the active window.
Warp at window to the north of the focused window.
Warp at window to the south of the focused window.
Warp at window to the east of the focused window.
Warp at window to the west of the focused window.
Search and focus Yabai managed windows
Focus the next window of the current application
-- Adds "Restart" command. -- Adds "Start" command. -- Adds "Stop" command. -- Adds "Layout BSP" command. -- Adds "Layout Stack" command. -- Adds "Layout Float" command.