summaryrefslogtreecommitdiffstats
path: root/usecases/desktop/graphical/alacritty.nix
blob: 0f0350458d4e519f96baf2db312292d9d28488c8 (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
inputs:

{ config, ... }:

{
  home-manager.users.minijackson.programs.alacritty = {
    enable = true;
    settings = {
      window = {
        padding.x = 2;
        padding.y = 2;
      };

      font = {
        size = 8.0;
        offset.y = -2;
      };

      colors = with config.theme.colors; {
        primary.background = softBackground;
        primary.foreground = foreground;

        normal = {
          black = background;
          # TODO: bright white is same
          #white = "0xa89984";
          white = foreground;
          red = neutralRed;
          green = neutralGreen;
          yellow = neutralYellow;
          blue = neutralBlue;
          magenta = neutralMagenta;
          cyan = neutralCyan;
        };

        bright = {
          black = dimForeground;
          white = foreground;
          red = brightRed;
          green = brightGreen;
          yellow = brightYellow;
          blue = brightBlue;
          magenta = brightMagenta;
          cyan = brightCyan;
        };
      };
    };
  };
}