feat(hyprland): add window resize binds

This commit is contained in:
2026-10-11 14:54:38 -04:00
parent a8bd4bf4cf
commit 49b7342f65
2 changed files with 43 additions and 0 deletions

View File

@@ -61,6 +61,16 @@
};
};
}
{
name = "hyprland-resize-${direction}";
value = {
keys = "SUPER + ALT + ${key}";
action = {
kind = "resize-window";
inherit direction;
};
};
}
]
)
[
@@ -122,6 +132,33 @@
"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}
))