Add udev rules for Keychron C2
Without these, the function keys don’t work as function keys, but only as media keys.
This commit is contained in:
		
							parent
							
								
									a4b0edf7f0
								
							
						
					
					
						commit
						44c073c07c
					
				
					 2 changed files with 8 additions and 0 deletions
				
			
		|  | @ -7,5 +7,6 @@ | |||
|         ./packages.nix | ||||
|         ./users.nix | ||||
|         ./locale.nix | ||||
|         ./hardware.nix | ||||
|     ]; | ||||
| } | ||||
|  |  | |||
							
								
								
									
										7
									
								
								base/hardware.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								base/hardware.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,7 @@ | |||
| { pkgs, ... }: | ||||
| { | ||||
|     services.udev.extraRules = '' | ||||
|         # Keychron C2 function key fix | ||||
|         SUBSYSTEMS=="input", ATTRS{name}==Keychron C2", RUN+="${pkgs.coreutils}/bin/echo 0 | ${pkgs.coreutils}/bin/tee /sys/module/hid_apple/parameters/fnmode" | ||||
|     ''; | ||||
| } | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue