fix(hyprland): set naga conf correctly
All checks were successful
Discord / discord commits (push) Has been skipped

This commit is contained in:
matt1432 2024-02-09 17:18:07 -05:00
parent 17e8794aaf
commit 9170942eac

View file

@ -3,21 +3,34 @@
osConfig,
...
}: let
inherit (lib) optionals;
inherit (lib) genAttrs optionals;
inherit (osConfig.services.xserver) xkb;
inherit (osConfig.vars) mainMonitor;
razerConf = {
sensitivity = -0.5;
accel_profile = "flat";
nagaProNames = [
# Wireless
"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 {
wayland.windowManager.hyprland = {
settings = {
settings =
(genAttrs nagaProNames (n: nagaConf))
// {
input = {
kb_layout = xkb.layout;
kb_variant = xkb.variant;
follow_mouse = true;
accel_profile = "flat";
touchpad = {
natural_scroll = true;
@ -25,9 +38,6 @@ in {
};
};
"device:razer-razer-naga-pro" = razerConf;
"device:razer-razer-naga-pro-1" = razerConf;
exec-once =
optionals (! isNull mainMonitor)
["hyprctl dispatch focusmonitor ${mainMonitor}"];