refactor: nix fmt classic to nix fmt
This commit is contained in:
parent
ca78adc858
commit
f9614371a3
57 changed files with 923 additions and 493 deletions
|
|
@ -7,7 +7,8 @@ let
|
|||
};
|
||||
|
||||
userSettings = import ./user-settings.nix { modes = modes; };
|
||||
in {
|
||||
in
|
||||
{
|
||||
programs.aerospace = {
|
||||
enable = true;
|
||||
package = pkgs.aerospace;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
{ workspaceFocusBindings, workspaceSendBindings }: {
|
||||
{ workspaceFocusBindings, workspaceSendBindings }:
|
||||
{
|
||||
main.binding = {
|
||||
"alt-h" = "focus left";
|
||||
"alt-j" = "focus down";
|
||||
|
|
@ -27,7 +28,9 @@
|
|||
"alt-r" = "mode resize";
|
||||
"alt-f" = "mode float";
|
||||
"alt-shift-semicolon" = "mode service";
|
||||
} // workspaceFocusBindings // workspaceSendBindings;
|
||||
}
|
||||
// workspaceFocusBindings
|
||||
// workspaceSendBindings;
|
||||
|
||||
float.binding = {
|
||||
enter = ''exec-and-forget open -na "Ghostty" && aerospace layout floating'';
|
||||
|
|
@ -36,8 +39,11 @@
|
|||
"layout floating"
|
||||
"mode main"
|
||||
];
|
||||
g =
|
||||
[ ''exec-and-forget open -na "Ghostty"'' "layout floating" "mode main" ];
|
||||
g = [
|
||||
''exec-and-forget open -na "Ghostty"''
|
||||
"layout floating"
|
||||
"mode main"
|
||||
];
|
||||
esc = "mode main";
|
||||
};
|
||||
|
||||
|
|
@ -52,13 +58,37 @@
|
|||
};
|
||||
|
||||
service.binding = {
|
||||
esc = [ "reload-config" "mode main" ];
|
||||
r = [ "flatten-workspace-tree" "mode main" ];
|
||||
f = [ "layout floating tiling" "mode main" ];
|
||||
backspace = [ "close-all-windows-but-current" "mode main" ];
|
||||
h = [ "join-with left" "mode main" ];
|
||||
j = [ "join-with down" "mode main" ];
|
||||
k = [ "join-with up" "mode main" ];
|
||||
l = [ "join-with right" "mode main" ];
|
||||
esc = [
|
||||
"reload-config"
|
||||
"mode main"
|
||||
];
|
||||
r = [
|
||||
"flatten-workspace-tree"
|
||||
"mode main"
|
||||
];
|
||||
f = [
|
||||
"layout floating tiling"
|
||||
"mode main"
|
||||
];
|
||||
backspace = [
|
||||
"close-all-windows-but-current"
|
||||
"mode main"
|
||||
];
|
||||
h = [
|
||||
"join-with left"
|
||||
"mode main"
|
||||
];
|
||||
j = [
|
||||
"join-with down"
|
||||
"mode main"
|
||||
];
|
||||
k = [
|
||||
"join-with up"
|
||||
"mode main"
|
||||
];
|
||||
l = [
|
||||
"join-with right"
|
||||
"mode main"
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
{ modes }: {
|
||||
{ modes }:
|
||||
{
|
||||
enable-normalization-flatten-containers = true;
|
||||
enable-normalization-opposite-orientation-for-nested-containers = true;
|
||||
default-root-container-layout = "tiles";
|
||||
|
|
|
|||
|
|
@ -4,13 +4,20 @@ let
|
|||
|
||||
workspaceNumbers = map toString (lib.range 1 9);
|
||||
|
||||
workspaceFocusBindings = listToAttrs (map (ws: {
|
||||
name = "alt-${ws}";
|
||||
value = "workspace ${ws}";
|
||||
}) workspaceNumbers);
|
||||
workspaceFocusBindings = listToAttrs (
|
||||
map (ws: {
|
||||
name = "alt-${ws}";
|
||||
value = "workspace ${ws}";
|
||||
}) workspaceNumbers
|
||||
);
|
||||
|
||||
workspaceSendBindings = listToAttrs (map (ws: {
|
||||
name = "alt-shift-${ws}";
|
||||
value = "move-node-to-workspace ${ws}";
|
||||
}) workspaceNumbers);
|
||||
in { inherit workspaceNumbers workspaceFocusBindings workspaceSendBindings; }
|
||||
workspaceSendBindings = listToAttrs (
|
||||
map (ws: {
|
||||
name = "alt-shift-${ws}";
|
||||
value = "move-node-to-workspace ${ws}";
|
||||
}) workspaceNumbers
|
||||
);
|
||||
in
|
||||
{
|
||||
inherit workspaceNumbers workspaceFocusBindings workspaceSendBindings;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue