sway: configure mouse

This commit is contained in:
Leonardo Eugênio 2024-08-15 01:49:10 -03:00
parent 3bf1bd220e
commit 9da25c99fe
3 changed files with 22 additions and 0 deletions

View file

@ -18,6 +18,7 @@
./fonts.nix
./sound.nix
./bluetooth.nix
./mouse.nix
./locale.nix
./users.nix
./containers.nix

15
system/mouse.nix Normal file
View 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
'';
}

View file

@ -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";