aboutsummaryrefslogtreecommitdiff
path: root/common/.flake/home/programs/alacritty.nix.org
blob: 5249145a705018d98303ba8a75a3da0193f45835 (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
#+title: Alacritty Configuration

This is the configuration for Alacritty terminal emulator.
#+begin_src nix
  { config, pkgs, ... }:

  {
    programs.alacritty = {
      enable = true;
      settings = {
#+end_src

Use no window decorations, slight transparency, small padding, and allow the =⌥= to work as =alt=.
#+begin_src nix
        window = {
          decorations = "None";
          opacity = 0.9;
          padding = {
            x = 6;
            y = 6;
          };
          option_as_alt = "Both";
        };
#+end_src

Use Source Code Pro (Nerd Font), size 14 as my font.
#+begin_src nix
        font = {
          normal = {
            family = "SauceCodePro Nerd Font";
            style = "Regular";
          };
          size = 14;
        };
#+end_src

Set colour scheme.
#+begin_src nix
        colors = {
          primary = {
            background = "#ece0c9";
            foreground = "#191916";
          };
          normal = {
            black   = "#191916";
            red     = "#ac4438";
            green   = "#354d52";
            yellow  = "#ba9151";
            blue    = "#465b91";
            magenta = "#5b5489";
            cyan    = "#4e6062";
            white   = "#c9ad7a";
          };
          bright = {
            black   = "#293c3c";
            red     = "#d8611c";
            green   = "#4b7b53";
            yellow  = "#d8974b";
            blue    = "#2f3d91";
            magenta = "#735e82";
            cyan    = "#6b8f92";
            white   = "#ece0c9";
          };
        };
      };
    };
  }
#+end_src