53 lines
1.3 KiB
Nix
53 lines
1.3 KiB
Nix
{ pkgs, ... }:
|
||
{
|
||
# Copy kitty.app to ~/Applications/ for Spotlight indexing
|
||
# (home-manager creates symlink, Spotlight doesn't index symlinks)
|
||
home.file."Applications/kitty.app" = {
|
||
source = "${pkgs.kitty}/Applications/kitty.app";
|
||
recursive = true;
|
||
};
|
||
|
||
programs.kitty = {
|
||
enable = true;
|
||
|
||
font = {
|
||
name = "JetBrainsMono Nerd Font";
|
||
size = 12;
|
||
};
|
||
|
||
themeFile = "Catppuccin-Mocha";
|
||
|
||
settings = {
|
||
background_opacity = "1";
|
||
dynamic_background_opacity = "yes";
|
||
background_blur = 16;
|
||
cursor_shape = "beam";
|
||
modify_font = "cell_height 110%";
|
||
bold_font = "auto";
|
||
disable_ligatures = "never";
|
||
adjust_line_height = "0";
|
||
adjust_column_width = "0";
|
||
|
||
tab_bar_min_tabs = 1;
|
||
tab_bar_edge = "bottom";
|
||
tab_bar_style = "powerline";
|
||
tab_powerline_style = "slanted";
|
||
|
||
tab_title_template = "{title}{' :{}:'.format(num_windows) if num_windows > 1 else ''}";
|
||
|
||
scrollback_lines = 10000;
|
||
|
||
# Copy/paste with non-latin layouts
|
||
map_cmd_v = "paste_from_clipboard";
|
||
map_cmd_c = "copy_to_clipboard";
|
||
|
||
# Russian layout aliases (Cmd)
|
||
"map cmd+м" = "paste_from_clipboard";
|
||
"map cmd+с" = "copy_to_clipboard";
|
||
};
|
||
|
||
extraConfig = ''
|
||
include ~/.config/kitty/cyrillic-shortcuts.conf
|
||
'';
|
||
};
|
||
}
|