nixos-configs/modules/hyprland/inputs.nix
matt1432 efa318d4d1
All checks were successful
Discord / discord commits (push) Has been skipped
refactor(hypr): move more config into nix files
2024-02-05 09:56:42 -05:00

36 lines
735 B
Nix

{
lib,
osConfig,
...
}: let
inherit (lib) optionals;
inherit (osConfig.services.xserver) xkb;
inherit (osConfig.vars) mainMonitor;
razerConf = {
sensitivity = -0.5;
accel_profile = "flat";
};
in {
wayland.windowManager.hyprland = {
settings = {
input = {
kb_layout = xkb.layout;
kb_variant = xkb.variant;
follow_mouse = true;
touchpad = {
natural_scroll = true;
disable_while_typing = false;
};
};
"device:razer-razer-naga-pro" = razerConf;
"device:razer-razer-naga-pro-1" = razerConf;
exec-once =
optionals (! isNull mainMonitor)
["hyprctl dispatch focusmonitor ${mainMonitor}"];
};
};
}