feat(aerospace): add floating/tiling mode specifically for terminal, workspace tweaks
This commit is contained in:
parent
1e162a1225
commit
ff677a03cc
2 changed files with 19 additions and 0 deletions
|
|
@ -26,9 +26,22 @@
|
||||||
"alt-shift-tab" = "move-workspace-to-monitor --wrap-around next";
|
"alt-shift-tab" = "move-workspace-to-monitor --wrap-around next";
|
||||||
|
|
||||||
"alt-r" = "mode resize";
|
"alt-r" = "mode resize";
|
||||||
|
"alt-f" = "mode float";
|
||||||
"alt-shift-semicolon" = "mode service";
|
"alt-shift-semicolon" = "mode service";
|
||||||
} // workspaceFocusBindings // workspaceSendBindings;
|
} // workspaceFocusBindings // workspaceSendBindings;
|
||||||
|
|
||||||
|
float.binding = {
|
||||||
|
enter = ''exec-and-forget open -na "Ghostty" && aerospace layout floating'';
|
||||||
|
i = [
|
||||||
|
''exec-and-forget open -na "iTerm.app"''
|
||||||
|
"layout floating"
|
||||||
|
"mode main"
|
||||||
|
];
|
||||||
|
g =
|
||||||
|
[ ''exec-and-forget open -na "Ghostty"'' "layout floating" "mode main" ];
|
||||||
|
esc = "mode main";
|
||||||
|
};
|
||||||
|
|
||||||
resize.binding = {
|
resize.binding = {
|
||||||
h = "resize width -100";
|
h = "resize width -100";
|
||||||
l = "resize width +100";
|
l = "resize width +100";
|
||||||
|
|
|
||||||
|
|
@ -21,5 +21,11 @@
|
||||||
on-focused-monitor-changed = [ "move-mouse monitor-lazy-center" ];
|
on-focused-monitor-changed = [ "move-mouse monitor-lazy-center" ];
|
||||||
on-focus-changed = [ "move-mouse window-lazy-center" ];
|
on-focus-changed = [ "move-mouse window-lazy-center" ];
|
||||||
|
|
||||||
|
on-window-detected = [{
|
||||||
|
"if".app-id = "com.mitchellh.ghostty";
|
||||||
|
"if".workspace = "5";
|
||||||
|
run = [ "layout floating" ];
|
||||||
|
}];
|
||||||
|
|
||||||
mode = modes;
|
mode = modes;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue