-
Notifications
You must be signed in to change notification settings - Fork 0
/
alacritty.yml
181 lines (144 loc) · 6.69 KB
/
alacritty.yml
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
# Configuration for Alacritty, the GPU enhanced terminal emulator.
env:
TERM: xterm-256color
window:
dimensions:
columns: 120
lines: 35
# Spread additional padding evenly around the terminal content.
dynamic_padding: false
# Window decorations
decorations: full
# Startup Mode (changes require restart)
startup_mode: Windowed
# Allow terminal applications to change Alacritty's window title.
dynamic_title: true
scrolling:
history: 10000
multiplier: 3
# Font configuration
font:
normal:
family: "JetBrainsMono Nerd Font"
style: Regular
bold:
family: "JetBrainsMono Nerd Font"
style: Bold
italic:
family: "JetBrainsMono Nerd Font"
style: Italic
size: 16
offset:
x: 0
y: 0
glyph_offset:
x: 0
y: 0
# Better font rendering for mac
use_thin_strokes: true
draw_bold_text_with_bright_colors: true
# Dracula colors
import:
- ~/.config/alacritty/dracula.yml
bell:
animation: EaseOutExpo
duration: 0
color: '#ffffff'
# Background opacity
#
# Window opacity as a floating point number from `0.0` to `1.0`.
# The value `0.0` is completely transparent and `1.0` is opaque.
background_opacity: 1.0
selection:
# This string contains all characters that are used as separators for
# "semantic words" in Alacritty.
semantic_escape_chars: ",│`|:\"' ()[]{}<>\t"
# When set to `true`, selected text will be copied to the primary clipboard.
save_to_clipboard: false
cursor:
style: Block
vi_mode_style: None
unfocused_hollow: true
thickness: 0.15
# Live config reload (changes require restart)
live_config_reload: true
# Shell
# Startup directory
#
# Directory the shell is started in. If this is unset, or `None`, the working
# directory of the parent process will be used.
working_directory: None
# Send ESC (\x1b) before characters when alt is pressed.
alt_send_esc: true
mouse:
# Click settings
double_click: { threshold: 300 }
triple_click: { threshold: 300 }
# If this is `true`, the cursor is temporarily hidden when typing.
hide_when_typing: false
url:
launcher:
program: xdg-open
modifiers: None
# Mouse bindings
mouse_bindings:
- { mouse: Middle, action: PasteSelection }
# Key bindings
key_bindings:
- { key: Paste, action: Paste }
- { key: Copy, action: Copy }
- { key: L, mods: Control, action: ClearLogNotice }
- { key: L, mods: Control, mode: ~Vi|~Search, chars: "\x0c" }
- { key: PageUp, mods: Shift, mode: ~Alt, action: ScrollPageUp, }
- { key: PageDown, mods: Shift, mode: ~Alt, action: ScrollPageDown }
- { key: Home, mods: Shift, mode: ~Alt, action: ScrollToTop, }
- { key: End, mods: Shift, mode: ~Alt, action: ScrollToBottom }
# ASCII Characters https://donsnotes.com/tech/charsets/ascii.html
# Key Bindings for tmux (c-a) x01=^A(control+shift+A)
- { key: T, mods: Command, chars: "\x01\x63" } # New window keycode x63=c
- { key: D, mods: Command, chars: "\x01\x2d" } # Split pane horizontally
- { key: D, mods: Command|Shift, chars: "\x01\x5f" } # Split pane vertically
- { key: W, mods: Command, command: { program: "/usr/local/bin/tmux", args: ["kill-pane"] } }
- { key: Left, mods: Command, command: { program: "/usr/local/bin/tmux", args: ["select-pane", "-L"] } }
- { key: Right, mods: Command, command: { program: "/usr/local/bin/tmux", args: ["select-pane", "-R"] } }
- { key: Up, mods: Command, command: { program: "/usr/local/bin/tmux", args: ["select-pane", "-U"] } }
- { key: Down, mods: Command, command: { program: "/usr/local/bin/tmux", args: ["select-pane", "-D"] } }
# Use `<cmd + 1~9>` to switch tmux window
- { key: Key1, mods: Command, command: { program: "/usr/local/bin/tmux", args: ["select-window", "-t", "1"] } }
- { key: Key2, mods: Command, command: { program: "/usr/local/bin/tmux", args: ["select-window", "-t", "2"] } }
- { key: Key3, mods: Command, command: { program: "/usr/local/bin/tmux", args: ["select-window", "-t", "3"] } }
- { key: Key4, mods: Command, command: { program: "/usr/local/bin/tmux", args: ["select-window", "-t", "4"] } }
- { key: Key5, mods: Command, command: { program: "/usr/local/bin/tmux", args: ["select-window", "-t", "5"] } }
- { key: Key6, mods: Command, command: { program: "/usr/local/bin/tmux", args: ["select-window", "-t", "6"] } }
- { key: Key7, mods: Command, command: { program: "/usr/local/bin/tmux", args: ["select-window", "-t", "7"] } }
- { key: Key8, mods: Command, command: { program: "/usr/local/bin/tmux", args: ["select-window", "-t", "8"] } }
- { key: Key9, mods: Command, command: { program: "/usr/local/bin/tmux", args: ["select-window", "-t", "9"] } }
# (macOS only)
# - { key: K, mods: Command, mode: ~Vi|~Search, chars: "\x0c" }
# - { key: K, mods: Command, mode: ~Vi|~Search, action: ClearHistory }
# - { key: Key0, mods: Command, action: ResetFontSize }
# - { key: Equals, mods: Command, action: IncreaseFontSize }
# - { key: Plus, mods: Command, action: IncreaseFontSize }
# - { key: NumpadAdd, mods: Command, action: IncreaseFontSize }
# - { key: Minus, mods: Command, action: DecreaseFontSize }
# - { key: NumpadSubtract, mods: Command, action: DecreaseFontSize }
# - { key: V, mods: Command, action: Paste }
# - { key: C, mods: Command, action: Copy }
# - { key: C, mods: Command, mode: Vi|~Search, action: ClearSelection }
# - { key: H, mods: Command, action: Hide }
# - { key: M, mods: Command, action: Minimize }
# - { key: Q, mods: Command, action: Quit }
# - { key: W, mods: Command, action: Quit }
# - { key: N, mods: Command, action: SpawnNewInstance }
- { key: F, mods: Command|Control, action: ToggleFullscreen }
# - { key: F, mods: Command, mode: ~Search, action: SearchForward }
# - { key: B, mods: Command, mode: ~Search, action: SearchBackward }
debug:
# Display the time it takes to redraw each frame.
render_timer: false
# Keep the log file after quitting Alacritty.
persistent_logging: false
# Log level
log_level: Warn
# Print all received window events.
print_events: false