aboutsummaryrefslogtreecommitdiff
path: root/users/tdback/modules/alacritty/default.nix
blob: 3133d9390446ad84f969a71058d04e8e74fe6f48 (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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
{
  pkgs,
  ...
}:
{
  programs.alacritty = {
    enable = true;
    package = pkgs.unstable.alacritty;
    settings = {
      env.TERM = "xterm-256color";
      mouse.hide_when_typing = true;
      scrolling.history = 10000;
      window = {
        decorations = "None";
        opacity = 1.0;
        title = "Alacritty";
        padding.x = 4;
      };
      cursor.style.blinking = "Never";
      font =
        let
          family = "Iosevka Comfy Motion Fixed";
        in
        {
          size = 16.0;
          normal = {
            inherit family;
            style = "Regular";
          };
          italic = {
            inherit family;
            style = "Italic";
          };
          bold = {
            inherit family;
            style = "Bold";
          };
          bold_italic = {
            inherit family;
            style = "Bold Italic";
          };
        };

      # Tomorrow Night Bright colorscheme.
      colors = {
        draw_bold_text_with_bright_colors = true;
        primary = {
          background = "#000000";
          foreground = "#eaeaea";
        };
        normal = {
          black = "#000000";
          red = "#d54e53";
          green = "#b9ca4a";
          yellow = "#e6c547";
          blue = "#7aa6da";
          magenta = "#c397d8";
          cyan = "#70c0ba";
          white = "#424242";
        };
        bright = {
          black = "#666666";
          red = "#ff3334";
          green = "#9ec400";
          yellow = "#e7c547";
          blue = "#7aa6da";
          magenta = "#b77ee0";
          cyan = "#54ced6";
          white = "#2a2a2a";
        };
      };
    };
  };
}