662d24a89c
- Introduced `binds.nix` for Hyprland, defining keybindings for various applications and workspace management. - Added `base-settings.nix` and `window-rules.nix` for Niri, establishing keyboard input settings and window management rules. - Updated `default.nix` for both Hyprland and Niri to import new configuration files, enhancing modularity and maintainability.
19 lines
418 B
Nix
19 lines
418 B
Nix
{ self, ... }: {
|
|
flake.lib.niriBaseSettings =
|
|
pkgs:
|
|
{
|
|
input.keyboard = {
|
|
xkb.layout = "ca";
|
|
xkb.variant = "";
|
|
};
|
|
input."focus-follows-mouse" = _: {
|
|
props."max-scroll-amount" = "45%";
|
|
content = { };
|
|
};
|
|
input."warp-mouse-to-focus" = _: { };
|
|
layout.gaps = 5;
|
|
prefer-no-csd = true;
|
|
window-rules = self.lib.niriWindowRules;
|
|
};
|
|
}
|