kitty: moved config file to programs directory

This commit is contained in:
Tigor Hutasuhut 2024-07-23 10:24:21 +07:00
parent b7525b1732
commit 11203c1029
3 changed files with 6 additions and 9 deletions

View file

@ -11,7 +11,6 @@ in
./modules ./modules
./direnv.nix ./direnv.nix
./config/kitty
./config/ideavim ./config/ideavim
./secrets.nix ./secrets.nix
]; ];

View file

@ -10,6 +10,7 @@
./github.nix ./github.nix
./go.nix ./go.nix
./jellyfin.nix ./jellyfin.nix
./kitty.nix
./microsoft-edge.nix ./microsoft-edge.nix
./mongodb-compass.nix ./mongodb-compass.nix
./mpv.nix ./mpv.nix

View file

@ -4,7 +4,7 @@ let
in in
{ {
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {
programs.zsh.initExtra = '' programs.zsh.initExtra = /*bash*/ ''
if [[ "$TERM" == "xterm-kitty" ]]; then if [[ "$TERM" == "xterm-kitty" ]]; then
alias ssh="kitty +kitten ssh" alias ssh="kitty +kitten ssh"
fi fi
@ -25,16 +25,18 @@ in
tab_bar_style = "slant"; tab_bar_style = "slant";
background_blur = 40; background_blur = 40;
background_opacity = toString 0.90; background_opacity = toString 0.90;
cursor_blink_interval = toString 0.5;
}; };
keybindings = { keybindings = {
"ctrl+a>enter" = "launch --location=hsplit --cwd=current"; "ctrl+a>enter" = "launch --location=vsplit --cwd=current";
"ctrl+a>backspace" = "launch --location=vsplit --cwd=current"; "ctrl+a>backspace" = "launch --location=hsplit --cwd=current";
"ctrl+a>h" = "neighboring_window left"; "ctrl+a>h" = "neighboring_window left";
"ctrl+a>j" = "neighboring_window down"; "ctrl+a>j" = "neighboring_window down";
"ctrl+a>k" = "neighboring_window up"; "ctrl+a>k" = "neighboring_window up";
"ctrl+a>l" = "neighboring_window right"; "ctrl+a>l" = "neighboring_window right";
"ctrl+a>t" = "new_tab_with_cwd"; "ctrl+a>t" = "new_tab_with_cwd";
"ctrl+a>w" = "close_window"; "ctrl+a>w" = "close_window";
"ctrl+a>r" = "start_resizing_window";
}; };
font = { font = {
name = "JetBrainsMono Nerd Font Mono"; name = "JetBrainsMono Nerd Font Mono";
@ -44,10 +46,5 @@ in
globinclude kitty.d/**/*.conf globinclude kitty.d/**/*.conf
''; '';
}; };
home.file.".config/kitty" = {
source = ./.;
recursive = true;
};
}; };
} }