dotfiles/modules/darwin/home/programs/aerospace/user-settings.nix

44 lines
1.1 KiB
Nix

{ modes }:
{
enable-normalization-flatten-containers = true;
enable-normalization-opposite-orientation-for-nested-containers = true;
default-root-container-layout = "tiles";
default-root-container-orientation = "auto";
key-mapping.preset = "qwerty";
gaps = {
inner = {
horizontal = 8;
vertical = 8;
};
outer = {
top = 12;
bottom = 12;
left = 12;
right = 12;
};
};
on-focused-monitor-changed = [ "move-mouse monitor-lazy-center" ];
on-focus-changed = [ "move-mouse window-lazy-center" ];
# Flatten workspace tree on switch to prevent nested container issues
exec-on-workspace-change = [ "flatten-workspace-tree" ];
on-window-detected = [
# Codex /pet opens an auxiliary window that should not enter the tiling tree.
{
"if".app-id = "com.openai.codex";
"if".window-title-regex-substring = "pet|hatch";
run = "layout floating";
}
# Exception: Kitty on workspace 5 floats
{
"if".app-id = "net.kovidgoyal.kitty";
"if".workspace = "5";
run = "layout floating";
}
];
mode = modes;
}