feat(hyprland): add window resize binds

This commit was merged in pull request #152.
This commit is contained in:
2026-10-11 15:00:03 -04:00
parent a8bd4bf4cf
commit be9c3c07a3
2 changed files with 55 additions and 1 deletions

View File

@@ -61,6 +61,17 @@
};
};
}
{
name = "hyprland-resize-${direction}";
value = {
keys = "SUPER + ALT + ${key}";
repeating = true;
action = {
kind = "resize-window";
inherit direction;
};
};
}
]
)
[
@@ -122,10 +133,40 @@
"move-window" = "hl.dsp.window.move(${
lib.generators.toLua { } { inherit (keybind.action) direction workspace; }
})";
"resize-window" = "hl.dsp.window.resize(${
lib.generators.toLua { } (
{
down = {
x = 0;
y = 10;
relative = true;
};
left = {
x = -10;
y = 0;
relative = true;
};
right = {
x = 10;
y = 0;
relative = true;
};
up = {
x = 0;
y = -10;
relative = true;
};
}
.${keybind.action.direction}
)
})";
}
.${keybind.action.kind}
))
];
]
++ lib.optional keybind.repeating {
repeating = true;
};
}) (lib.attrByPath [ config.networking.hostName ] { } config.registry.keybind);
};
};