-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathalacritty.toml
86 lines (71 loc) · 2.06 KB
/
alacritty.toml
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
# Window configuration
[window]
dimensions = { columns = 120, lines = 30 }
padding = { x = 10, y = 10 }
decorations = "Full"
opacity = 0.98 # Slight transparency (0.0 = fully transparent, 1.0 = opaque)
blur = true
title = ""
# Font configuration
[font]
normal = { family = "Hack Nerd Font", style = "Regular" }
bold = { family = "Hack Nerd Font", style = "Bold" }
italic = { family = "Hack Nerd Font", style = "Italic" }
bold_italic = { family = "Hack Nerd Font", style = "Bold Italic" }
size = 14.0
[colors.primary]
background = "#1e1e1e"
foreground = "#d4d4d4"
[mouse]
hide_when_typing = false
[cursor]
thickness=0.01
# Hints
[colors.hints]
start = { foreground = "#ffffff", background = "#228B22" }
end = { foreground = "#ffffff", background = "#228B22" }
[hints]
alphabet = "jfkdls;ahgurieowpq"
# Edit text files (Command + E)
[[hints.enabled]]
regex = "[^\\s]+\\.(py|sh|md|toml|conf|zshrc|yaml|yml)"
command = { program = "/opt/homebrew/bin/alacritty", args = ["-e", "/opt/homebrew/bin/nvim"] }
hyperlinks = true
binding = { key = "E", mods = "Command" }
# Open media files and URLs (Command + O)
[[hints.enabled]]
regex = "[^\\s]+\\.(jpg|jpeg|png|gif|bmp|svg)|https?://[^\\s]+"
command = "open"
binding = { key = "O", mods = "Command" }
hyperlinks = true
post_processing = true
# Yank file paths and URLs (Command + Y)
[[hints.enabled]]
regex = "[^\\s]+\\.(py|sh|md|jpg|jpeg|png|gif|bmp|svg)|https?://[^\\s]+"
action = "Copy"
binding = { key = "Y", mods = "Command" }
hyperlinks = false
# Key bindings
[[keyboard.bindings]]
key = "Back"
mods = "Command"
chars = "\u0015" # CTRL+U, which erases the entire line in most shells
# Keyboard bindings
[[keyboard.bindings]]
key = "Left"
mods = "Command"
chars = "\u001bb" # ALT+B, which moves back one word in most shells
[[keyboard.bindings]]
key = "Right"
mods = "Command"
chars = "\u001bf" # ALT+F, which moves forward one word in most shellsi
# New key binding to open a new window
[[keyboard.bindings]]
key = "N"
mods = "Command"
action = "CreateNewWindow"
# Other settings
[scrolling]
history = 10000
[selection]
save_to_clipboard = true