Files
home-manager/tests/modules/services/hyprland/submaps-on-dispatch.nix
2026-04-13 22:02:40 -05:00

30 lines
642 B
Nix

{
wayland.windowManager.hyprland = {
enable = true;
submaps = {
resize = {
onDispatch = "reset";
settings = {
binde = [
", right, resizeactive, 10 0"
", left, resizeactive, -10 0"
];
};
};
other = {
onDispatch = "resize";
settings = {
bind = [ ", a, exec, true" ];
};
};
};
};
nmt.script = ''
config=home-files/.config/hypr/hyprland.conf
assertFileExists "$config"
assertFileContains "$config" "submap = resize, reset"
assertFileContains "$config" "submap = other, resize"
'';
}