use home-manager module to configure kitty, enable working directory in window title
This commit is contained in:
		
							parent
							
								
									cdc335e842
								
							
						
					
					
						commit
						67ca7276aa
					
				@ -3,29 +3,23 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
  config = lib.mkIf config.profiles.xsession.enable {
 | 
					  config = lib.mkIf config.profiles.xsession.enable {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    home.file.kitty = {
 | 
					    programs.kitty = {
 | 
				
			||||||
      target = ".config/kitty/kitty.conf";
 | 
					      enable = true;
 | 
				
			||||||
      text = ''
 | 
					      font.name = "MesloLGS NF";
 | 
				
			||||||
        #term               xterm-256color
 | 
					      font.size = 12;
 | 
				
			||||||
        font_family         MesloLGS NF
 | 
					      keybindings = {
 | 
				
			||||||
        font_size           12.0
 | 
					        "ctrl+shift+c" = "copy_to_clipboard";
 | 
				
			||||||
        background_opacity  0.7
 | 
					        "ctrl+shift+v" = "paste_from_clipboard";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        clear_all_shortcuts yes
 | 
					        "ctrl+plus" = "change_font_size all +2.0";
 | 
				
			||||||
 | 
					        "ctrl+shift+plus" = "change_font_size all -2.0";
 | 
				
			||||||
        map ctrl+shift+c copy_to_clipboard
 | 
					      };
 | 
				
			||||||
        map ctrl+shift+v paste_from_clipboard
 | 
					      settings = {
 | 
				
			||||||
 | 
					        "background_opacity" = 0.7;
 | 
				
			||||||
 | 
					      };
 | 
				
			||||||
 | 
					 | 
				
			||||||
        map ctrl+plus change_font_size all +2.0
 | 
					 | 
				
			||||||
        map ctrl+shift+plus change_font_size all -2.0
 | 
					 | 
				
			||||||
      '';
 | 
					 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
   home.packages = [
 | 
					   home.packages = [
 | 
				
			||||||
      pkgs.kitty
 | 
					 | 
				
			||||||
      pkgs.ncurses.dev
 | 
					      pkgs.ncurses.dev
 | 
				
			||||||
    ];
 | 
					    ];
 | 
				
			||||||
  };
 | 
					  };
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user