1

Refactor hyprland module to simplify config file generation from options

This commit is contained in:
2023-05-25 19:58:42 +02:00
parent ad604ef4a4
commit f479f9a925
3 changed files with 203 additions and 122 deletions

View File

@ -102,4 +102,38 @@ with mylib.modules; {
]
'';
};
keybindings = {
main-mod = mkOption {
type = types.str;
description = "Main modifier key";
example = ''
"SUPER"
'';
};
mod-bindings = mkOption {
type = types.attrs;
description = "Hyprland keyboard shortcuts using the modifier key";
example = ''
{
"Q" = ["killactive"];
"V" = ["togglefloating"];
}
'';
};
bindings = mkOption {
type = types.attrs;
description = "Hyprland keyboard shortcuts";
example = ''
{
"CTRL ALT, R" = [
"moveworkspacetomonitor, 1 HDMI-A-1"
"moveworkspacetomonitor, 2 HDMI-A-1"
];
}
'';
};
};
}