-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathalacritty.nix
92 lines (82 loc) · 2.27 KB
/
alacritty.nix
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
# programs.alacritty =
{ config, ... }: {
enable = true;
settings = {
general.live_config_reload = true;
cursor = {
style = {
shape = "Beam";
# blinking = "Never";
};
vi_mode_style.shape = "Block";
};
# [hints.mouse]
# enabled = true
scrolling = {
# auto_scroll = false
# faux_multiplier = 1
history = 10000;
multiplier = 3;
};
selection = {
save_to_clipboard = false;
};
window = {
dynamic_title = true;
opacity = 1.0;
};
font = {
builtin_box_drawing = true;
size = 13.0;
normal = { family = "JetBrains Mono"; style = "Regular"; };
bold = { family = "JetBrains Mono"; style = "Bold"; };
italic = { family = "JetBrains Mono"; style = "Italic"; };
bold_italic = { family = "JetBrains Mono"; style = "Bold Italic"; };
};
keyboard.bindings = [
{ key = "C"; mods = "Control|Shift"; action = "Copy"; }
{ key = "V"; mods = "Control|Shift"; action = "Paste"; }
{ key = "Escape"; mode = "Vi|~Search"; action = "ToggleViMode"; }
{ key = "J"; mods = "Control"; mode = "Vi|~Search"; action = "ScrollHalfPageDown"; }
{ key = "K"; mods = "Control"; mode = "Vi|~Search"; action = "ScrollHalfPageUp"; }
# TODO: center after `n` -> `nz`
# alacritty msg -s ? CenterAroundViCursor
{ key = "N"; mode = "Vi|~Search"; action = "SearchNext"; }
# TODO: dynamic window transparency/opacity
# - { key: Equals, mods: Control|Shift, action: IncreaseWindowOpacity }
# - { key: Minus, mods: Control|Shift, action: DecreaseWindowOpacity }
];
colors = with config.colorScheme.palette; {
primary = {
background = "0x282828";
foreground = "0xc5c8c6";
# background = "0x${base00}";
# foreground = "0x${base07}";
};
#cursor = {
# cursor = "0x${base06}";
# text = "0x${base06}";
#};
#normal = {
# black = "0x${base00}";
# blue = "0x${base0D}";
# cyan = "0x${base0C}";
# green = "0x${base0B}";
# magenta = "0x${base0E}";
# red = "0x${base08}";
# white = "0x${base06}";
# yellow = "0x${base0A}";
#};
#bright = {
# black = "0x${base00}";
# blue = "0x${base0D}";
# cyan = "0x${base0C}";
# green = "0x${base0B}";
# magenta = "0x${base0E}";
# red = "0x${base08}";
# white = "0x${base06}";
# yellow = "0x${base09}";
#};
};
};
}