# Yabai for Raycast

URL: https://www.raycast.com/krzysztoff1/yabai

> Control the yabai tiling window manager: focus, swap and warp windows, change layouts, manage spaces and search windows on your Mac.

- Install: raycast://extensions/krzysztoff1/yabai
- Author: [Krzysztof Duda](https://www.raycast.com/krzysztoff1)
- Installs: 3,127
- Categories: Developer Tools, Productivity
- Updated: 2026-11-17
- Source: https://github.com/raycast/extensions/tree/886cbd73fe377ad1d8f0c17083e6cd4c96748a33/extensions/yabai/

## Commands

- **Run Custom Yabai Command**: Run custom Yabai command
- **Show Current Screen**: Update the status information about the currently selected screen.
- **Windows List by Current Space**: Show the application of the current space.
- **Toggle Yabai**: This command will start Yabai using `yabai --start-service` or stop it using `yabai --stop-service`.
- **Rotate**: Rotate the tree 90 degrees clockwise.
- **Mirror X**: Mirror the tree on the X axis.
- **Mirror Y**: Mirror the tree on the Y axis.
- **Balance**: Balance the windows.
- **Restart**: Restart yabai service.
- **Start**: Start yabai service.
- **Stop**: Stop yabai service.
- **Layout BSP**: Switch to BSP layout for the current space.
- **Layout Stack**: Switch to stack layout for the current space.
- **Layout Float**: Switch to float layout for the current space.
- **Create & Focus New Space**: Creates a new workspace and focuses it.
- **Focus Space**: Focuses the specified space.
- **Destroy Current Space**: Destroys the currently focused space.
- **Focus Active Window North**: Focus the window to the north of the currently focused window.
- **Focus Active Window South**: Focus the window to the south of the currently focused window.
- **Focus Active Window East**: Focus the window to the east of the currently focused window.
- **Focus Active Window West**: Focus the window to the west of the currently focused window.
- **Swap Active Window North**: Swap window position and size with window to the north of the active window.
- **Swap Active Window South**: Swap window position and size with window to the south of the active window.
- **Swap Active Window East**: Swap window position and size with window to the east of the active window.
- **Swap Active Window West**: Swap window position and size with window to the west of the active window.
- **Warp Active Window North**: Warp at window to the north of the focused window.
- **Warp Active Window South**: Warp at window to the south of the focused window.
- **Warp Active Window East**: Warp at window to the east of the focused window.
- **Warp Active Window West**: Warp at window to the west of the focused window.
- **Search Windows**: Search and focus Yabai managed windows
- **Focus Next Window of Same App**: Focus the next window of the current application

## README

### Yabai

> Run Yabai window management commands directly from Raycast.

#### Installation

To use this extension, you must have `yabai` installed on your machine.

The easiest way to install this is using [Homebrew](https://brew.sh/). After you have Homebrew installed, run the
following command in your terminal:

```bash
brew install koekeishiya/formulae/yabai
```

[Official installation instructions](https://github.com/raycast/extensions/raw/886cbd73fe377ad1d8f0c17083e6cd4c96748a33/extensions/yabai//<https://github.com/koekeishiya/yabai/wiki/Installing-yabai-(latest-release)>)

#### Additional Setup for MenuBar Desktop Indicator

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:

```bash
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.
