sway: configure mouse
This commit is contained in:
parent
3bf1bd220e
commit
9da25c99fe
|
@ -18,6 +18,7 @@
|
|||
./fonts.nix
|
||||
./sound.nix
|
||||
./bluetooth.nix
|
||||
./mouse.nix
|
||||
./locale.nix
|
||||
./users.nix
|
||||
./containers.nix
|
||||
|
|
15
system/mouse.nix
Normal file
15
system/mouse.nix
Normal file
|
@ -0,0 +1,15 @@
|
|||
{
|
||||
# Allow configuring Logitech Peripherals
|
||||
services.ratbagd.enable = true;
|
||||
|
||||
# Sway does not undersand high resolution scroll wheels
|
||||
# I don't need this, so I disable it
|
||||
environment.etc."libinput/local-overrides.quirks".text = ''
|
||||
[Logitech G502 X PLUS]
|
||||
MatchUdevType=mouse
|
||||
MatchBus=usb
|
||||
MatchVendor=0x046D
|
||||
MatchProduct=0x4099
|
||||
AttrEventCode=-REL_WHEEL_HI_RES
|
||||
'';
|
||||
}
|
|
@ -79,6 +79,12 @@ in
|
|||
};
|
||||
# Ignore PS4 controller touchpad events
|
||||
input."1356:2508:Wireless_Controller_Touchpad".events = "disabled";
|
||||
|
||||
input."1133:16537:Logitech_G502_X_PLUS" = {
|
||||
accel_profile = "flat";
|
||||
pointer_accel = "0";
|
||||
};
|
||||
|
||||
input."type:touchpad" = {
|
||||
# Disable While Typing
|
||||
dwt = "enabled";
|
||||
|
|
Loading…
Reference in a new issue