aboutsummaryrefslogtreecommitdiff
path: root/util/modules/home/kitty.nix
blob: 852f5544cdf795be397fbeb7c60572c5c31f8d07 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{ config, ... }:

{
  programs.kitty = {
    enable = true;

    font = { name = "monospace"; size = 8.0; };

    settings = let c = config.theme.colors; in {
      color0  = "#${c.black}";
      color1  = "#${c.red}";
      color2  = "#${c.green}";
      color3  = "#${c.yellow}";
      color4  = "#${c.blue}";
      color5  = "#${c.magenta}";
      color6  = "#${c.cyan}";
      color7  = "#${c.white}";

      color8  = "#${c.brightBlack}";
      color9  = "#${c.brightRed}";
      color10 = "#${c.brightGreen}";
      color11 = "#${c.brightYellow}";
      color12 = "#${c.brightBlue}";
      color13 = "#${c.brightMagenta}";
      color14 = "#${c.brightCyan}";
      color15 = "#${c.brightWhite}";
    };

    shellIntegration = {
      mode = "no-cursor";
      enableBashIntegration = true;
    };

    extraConfig = ''
      background_opacity 0.8
      confirm_os_window_close 0
    '';
  };
}