sway: configure mouse
This commit is contained in:
		
							parent
							
								
									2457164e1b
								
							
						
					
					
						commit
						9c664ca2ac
					
				
					 3 changed files with 22 additions and 0 deletions
				
			
		| 
						 | 
					@ -18,6 +18,7 @@
 | 
				
			||||||
    ./fonts.nix
 | 
					    ./fonts.nix
 | 
				
			||||||
    ./sound.nix
 | 
					    ./sound.nix
 | 
				
			||||||
    ./bluetooth.nix
 | 
					    ./bluetooth.nix
 | 
				
			||||||
 | 
					    ./mouse.nix
 | 
				
			||||||
    ./locale.nix
 | 
					    ./locale.nix
 | 
				
			||||||
    ./users.nix
 | 
					    ./users.nix
 | 
				
			||||||
    ./containers.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
 | 
					        # Ignore PS4 controller touchpad events
 | 
				
			||||||
        input."1356:2508:Wireless_Controller_Touchpad".events = "disabled";
 | 
					        input."1356:2508:Wireless_Controller_Touchpad".events = "disabled";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        input."1133:16537:Logitech_G502_X_PLUS" = {
 | 
				
			||||||
 | 
					          accel_profile = "flat";
 | 
				
			||||||
 | 
					          pointer_accel = "0";
 | 
				
			||||||
 | 
					        };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        input."type:touchpad" = {
 | 
					        input."type:touchpad" = {
 | 
				
			||||||
          # Disable While Typing
 | 
					          # Disable While Typing
 | 
				
			||||||
          dwt = "enabled";
 | 
					          dwt = "enabled";
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue