keyboard: fix capslock backspace bind for some programs
This commit is contained in:
		
							parent
							
								
									dbe5e01961
								
							
						
					
					
						commit
						b6bd4d7956
					
				
					 2 changed files with 16 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -22,6 +22,7 @@
 | 
			
		|||
    ./users.nix
 | 
			
		||||
    ./containers.nix
 | 
			
		||||
    ./network.nix
 | 
			
		||||
    ./keyboard.nix
 | 
			
		||||
    ../settings
 | 
			
		||||
  ];
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										15
									
								
								system/keyboard.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								system/keyboard.nix
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,15 @@
 | 
			
		|||
{ pkgs, lib, ... }:
 | 
			
		||||
{
 | 
			
		||||
  services.keyd = {
 | 
			
		||||
    enable = true;
 | 
			
		||||
    keyboards.default = {
 | 
			
		||||
      ids = [ "*" ];
 | 
			
		||||
      settings = {
 | 
			
		||||
        "main" = {
 | 
			
		||||
          # Some programs don't respect colemaks capslock bind, so we force it here
 | 
			
		||||
          "capslock" = "backspace";
 | 
			
		||||
        };
 | 
			
		||||
      };
 | 
			
		||||
    };
 | 
			
		||||
  };
 | 
			
		||||
}
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue