MyNixOS website logo

AeroSpace configuration, see https://nikitabobko.github.io/AeroSpace/guide#configuring-aerospace for supported values.

Declarations
Type
TOML value
Default
{ }
Example
{
  gaps = {
    outer = {
      bottom = 8;
      left = 8;
      right = 8;
      top = 8;
    };
  };
  mode = {
    main = {
      binding = {
        alt-h = "focus left";
        alt-j = "focus down";
        alt-k = "focus up";
        alt-l = "focus right";
      };
    };
  };
  on-window-detected = [
    {
      "if" = {
        app-id = "com.apple.finder";
      };
      run = "move-node-to-workspace 9";
    }
    {
      check-further-callbacks = true;
      "if" = {
        app-id = "com.apple.systempreferences";
        app-name-regex-substring = "settings";
        during-aerospace-startup = true;
        window-title-regex-substring = "substring";
        workspace = "workspace-name";
      };
      run = [
        "layout floating"
        "move-node-to-workspace S"
      ];
    }
  ];
}