nix: unify hyprland devices
Signed-off-by: Myned <dev@bjork.tech>
This commit is contained in:
parent
57985b98a5
commit
72f885ed26
1 changed files with 27 additions and 43 deletions
|
@ -247,52 +247,36 @@ in {
|
||||||
# https://wiki.hyprland.org/Configuring/Variables/#custom-accel-profiles
|
# https://wiki.hyprland.org/Configuring/Variables/#custom-accel-profiles
|
||||||
# https://wayland.freedesktop.org/libinput/doc/latest/pointer-acceleration.html#the-custom-acceleration-profile
|
# https://wayland.freedesktop.org/libinput/doc/latest/pointer-acceleration.html#the-custom-acceleration-profile
|
||||||
#?? custom <STEP> <POINTS...>
|
#?? custom <STEP> <POINTS...>
|
||||||
# TODO: Combine same devices
|
device = let
|
||||||
# FIXME: Hotplugging may result in different id
|
# Combine duplicate devices into one attrset
|
||||||
device = [
|
#?? (devices ["NAME"] {ATTRS})
|
||||||
{
|
devices = names: attrs: map (name: {inherit name;} // attrs) names;
|
||||||
name = "kensington-orbit-wireless-tb-mouse";
|
in
|
||||||
|
flatten [
|
||||||
|
(devices ["kensington-orbit-wireless-tb-mouse" "orbit-bt5.0-mouse"] {
|
||||||
accel_profile = "adaptive";
|
accel_profile = "adaptive";
|
||||||
sensitivity = -0.6;
|
|
||||||
left_handed = true;
|
left_handed = true;
|
||||||
middle_button_emulation = true;
|
middle_button_emulation = true;
|
||||||
natural_scroll = true;
|
natural_scroll = true;
|
||||||
}
|
|
||||||
|
|
||||||
{
|
|
||||||
name = "orbit-bt5.0-mouse";
|
|
||||||
accel_profile = "adaptive";
|
|
||||||
sensitivity = -0.6;
|
sensitivity = -0.6;
|
||||||
left_handed = true;
|
})
|
||||||
middle_button_emulation = true;
|
|
||||||
natural_scroll = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
{
|
(devices ["logitech-m570"] {
|
||||||
name = "logitech-m570";
|
|
||||||
accel_profile = "custom 1 0 1 3";
|
accel_profile = "custom 1 0 1 3";
|
||||||
sensitivity = -0.2;
|
sensitivity = -0.2;
|
||||||
}
|
})
|
||||||
|
|
||||||
{
|
(devices ["nordic-2.4g-wireless-receiver-mouse" "protoarc-em11-nl-mouse"] {
|
||||||
name = "nordic-2.4g-wireless-receiver-mouse";
|
|
||||||
sensitivity = -0.7;
|
sensitivity = -0.7;
|
||||||
}
|
})
|
||||||
|
|
||||||
{
|
(devices ["razer-razer-viper-ultimate" "razer-razer-viper-ultimate-dongle"] {
|
||||||
name = "protoarc-em11-nl-mouse";
|
|
||||||
sensitivity = -0.7;
|
sensitivity = -0.7;
|
||||||
}
|
})
|
||||||
|
|
||||||
{
|
(devices ["wireless-controller-touchpad"] {
|
||||||
name = "razer-razer-viper-ultimate-dongle";
|
|
||||||
sensitivity = -0.7;
|
|
||||||
}
|
|
||||||
|
|
||||||
{
|
|
||||||
name = "wireless-controller-touchpad";
|
|
||||||
enabled = false;
|
enabled = false;
|
||||||
}
|
})
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue