blob: 280c6675ca007d4fef0a828cf8e28c730283948c (
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
|
{ config
, pkgs
, lib
, theme
, font
, ...
}:
let
fontConfig = {
normal = { family = "${font.name}"; style = "Regular"; };
bold = { family = "${font.name}"; style = "Bold"; };
italic = { family = "${font.name}"; style = "Italic"; };
size = 10.0;
};
in
{
programs.alacritty = {
enable = true;
settings = {
env = {
TERM = "xterm-256color";
};
window = {
padding.x = 20;
padding.y = 20;
dynamic_padding = true;
decorations = "None";
};
font = fontConfig;
colors = {
primary = {
background = "${theme.base00}";
foreground = "${theme.base05}";
};
normal = {
black = "${theme.base00}";
red = "${theme.base08}";
green = "${theme.base0B}";
yellow = "${theme.base0A}";
blue = "${theme.base0D}";
magenta = "${theme.base0E}";
cyan = "${theme.base0C}";
white = "${theme.base05}";
};
bright = {
black = "${theme.base03}";
red = "${theme.base09}";
green = "${theme.base01}";
yellow = "${theme.base02}";
blue = "${theme.base04}";
magenta = "${theme.base06}";
cyan = "${theme.base0F}";
white = "${theme.base07}";
};
};
};
};
}
|