fix(hyprland): set naga conf correctly
All checks were successful
Discord / discord commits (push) Has been skipped
All checks were successful
Discord / discord commits (push) Has been skipped
This commit is contained in:
parent
17e8794aaf
commit
9170942eac
1 changed files with 30 additions and 20 deletions
|
@ -3,34 +3,44 @@
|
||||||
osConfig,
|
osConfig,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
inherit (lib) optionals;
|
inherit (lib) genAttrs optionals;
|
||||||
inherit (osConfig.services.xserver) xkb;
|
inherit (osConfig.services.xserver) xkb;
|
||||||
inherit (osConfig.vars) mainMonitor;
|
inherit (osConfig.vars) mainMonitor;
|
||||||
|
|
||||||
razerConf = {
|
nagaProNames = [
|
||||||
sensitivity = -0.5;
|
# Wireless
|
||||||
accel_profile = "flat";
|
"device:razer-razer-naga-pro"
|
||||||
|
|
||||||
|
# Wired (it always changes)
|
||||||
|
"device:razer-razer-naga-pro-1"
|
||||||
|
"device:razer-naga-pro"
|
||||||
|
"device:razer-naga-pro-1"
|
||||||
|
"device:razer-naga-pro-2"
|
||||||
|
"device:razer-naga-pro-3"
|
||||||
|
];
|
||||||
|
nagaConf = {
|
||||||
|
sensitivity = 0;
|
||||||
};
|
};
|
||||||
in {
|
in {
|
||||||
wayland.windowManager.hyprland = {
|
wayland.windowManager.hyprland = {
|
||||||
settings = {
|
settings =
|
||||||
input = {
|
(genAttrs nagaProNames (n: nagaConf))
|
||||||
kb_layout = xkb.layout;
|
// {
|
||||||
kb_variant = xkb.variant;
|
input = {
|
||||||
follow_mouse = true;
|
kb_layout = xkb.layout;
|
||||||
|
kb_variant = xkb.variant;
|
||||||
|
follow_mouse = true;
|
||||||
|
accel_profile = "flat";
|
||||||
|
|
||||||
touchpad = {
|
touchpad = {
|
||||||
natural_scroll = true;
|
natural_scroll = true;
|
||||||
disable_while_typing = false;
|
disable_while_typing = false;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
exec-once =
|
||||||
|
optionals (! isNull mainMonitor)
|
||||||
|
["hyprctl dispatch focusmonitor ${mainMonitor}"];
|
||||||
};
|
};
|
||||||
|
|
||||||
"device:razer-razer-naga-pro" = razerConf;
|
|
||||||
"device:razer-razer-naga-pro-1" = razerConf;
|
|
||||||
|
|
||||||
exec-once =
|
|
||||||
optionals (! isNull mainMonitor)
|
|
||||||
["hyprctl dispatch focusmonitor ${mainMonitor}"];
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue