Move kitty config into Nix
This commit is contained in:
41
nix/modules/kitty/default.nix
Normal file
41
nix/modules/kitty/default.nix
Normal file
@@ -0,0 +1,41 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
{
|
||||
programs.kitty = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
enabled_layouts = "vertical, tall, grid";
|
||||
background_opacity = "1.0";
|
||||
macos_option_as_alt = "left";
|
||||
};
|
||||
|
||||
font = {
|
||||
package = pkgs.fira-code;
|
||||
name = "Fira Code";
|
||||
size = 14;
|
||||
};
|
||||
|
||||
keybindings = {
|
||||
"kitty_mod+enter" = "launch --cwd=current";
|
||||
|
||||
"kitty_mod+h" = "neighboring_window left";
|
||||
"kitty_mod+j" = "neighboring_window down";
|
||||
"kitty_mod+k" = "neighboring_window up";
|
||||
"kitty_mod+l" = "neighboring_window right";
|
||||
|
||||
"ctrl+s>l" = "next_layout";
|
||||
"ctrl+s>h" = "show_scrollback";
|
||||
"ctrl+page_down" = "next_tab";
|
||||
"ctrl+page_up" = "previous_tab";
|
||||
"ctrl+shift+page_down" = "move_tab_forward";
|
||||
"ctrl+shift+page_up" = "move_tab_backward";
|
||||
};
|
||||
|
||||
extraConfig = ''
|
||||
include ${./current-theme.conf}
|
||||
|
||||
mouse_map left click ungrabbed no-op
|
||||
mouse_map ctrl+shift+left click ungrabbed mouse_click
|
||||
'';
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user