blob: 606e4f0529b4b60198146d0a57eeed20b73788dc (
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
|
{
lib,
config,
}:
let
cfg = config.beeMods.terminal;
in
{
config = lib.mkIf cfg.alacritty {
programs.alacritty = {
enable = true;
settings = {
cursor = {
thickness = 0.0;
};
colors = {
draw_bold_text_with_bright_colors = cfg.font.bright_color_is_bold;
cursor = {
text = "CellBackground";
# cursor = "CellForeground";
};
};
mouse = {
hide_when_typing = true;
};
general = {
import =
if
config.beeMods.matugen.enable
&& config.beeMods.windowManagers.beeConfig.enable
&& !config.beeMods.windowManagers.noctalia
then
[ "~/.config/alacritty/themes/matugen.toml" ]
else
[ "~/.config/alacritty/themes/noctalia" ];
};
window = {
dynamic_padding = true;
padding = {
y = cfg.window.padding-y;
x = cfg.window.padding-x;
};
# dimensions = {
# lines = 75;
# columns = 100;
# };
};
font = {
normal.family = cfg.font.family;
size = cfg.font.size;
};
};
};
};
}
|