/ modules / home / programs / kitty / default.nix
default.nix
 1  {
 2    lib,
 3    config,
 4    ...
 5  }:
 6  {
 7    programs.kitty = {
 8      enable = true;
 9      enableGitIntegration = true;
10  
11      shellIntegration = {
12        enableZshIntegration = true;
13        enableBashIntegration = true;
14      };
15  
16      # themeFile = "SpaceGray_Eighties";
17  
18      keybindings = {
19        # "ctrl+shift+v" = "paste_from_selection";
20        "ctrl+c" = "copy_and_clear_or_interrupt";
21      };
22  
23      environment = {
24        LS_COLORS = "1";
25      };
26  
27      settings = {
28        # cursor_trail = 1;
29        copy_on_select = "yes";
30        window_padding_width = 5;
31        enable_audio_bell = "yes";
32        focus_follows_mouse = "yes";
33  
34        background_blur = 40;
35        # background_opacity = 0.60;
36        dynamic_background_opacity = "yes";
37  
38        tab_fade = 1;
39        tab_bar_edge = "top";
40        tab_bar_align = "left";
41        tab_bar_margin_width = 0;
42        tab_bar_style = "powerline";
43        tab_powerline_style = "angled";
44        active_tab_font_style = "bold";
45        inactive_tab_font_style = "bold";
46  
47        macos_option_as_alt = "yes";
48        macos_colorspace = "default";
49        hide_window_decorations = "titlebar-only";
50        macos_quit_when_last_window_closed = "yes";
51  
52        # confirm_os_window_close = 0;
53      };
54  
55      extraConfig = lib.mkIf config.targets.genericLinux.enable ''
56        include theme.conf
57        include $HOME/MFarabi619/modules/home/programs/kitty/userprefs.conf
58      '';
59    };
60  }