-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconfig.lua
More file actions
84 lines (78 loc) · 1.76 KB
/
config.lua
File metadata and controls
84 lines (78 loc) · 1.76 KB
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
local wezterm = require("wezterm")
local config = {}
if wezterm.config_builder then
config = wezterm.config_builder()
end
-- General settings
config.default_cursor_style = "SteadyBar"
config.automatically_reload_config = true
config.window_close_confirmation = "NeverPrompt"
config.adjust_window_size_when_changing_font_size = false
config.window_decorations = "RESIZE"
config.check_for_updates = false
config.use_fancy_tab_bar = false
config.tab_bar_at_bottom = false
config.font_size = 12.5
config.font = wezterm.font("JetBrains Mono", { weight = "Bold" })
config.enable_tab_bar = false
config.window_padding = {
left = 7,
right = 0,
top = 2,
bottom = 0,
}
-- Background image and transparency
config.background = {
{
source = {
File = "/Users/" .. os.getenv("USER") .. "/Pictures/ravens.jpg",
},
hsb = {
hue = 1.0,
saturation = 1.02,
brightness = 0.25,
},
},
{
source = {
Color = "#282c35",
},
width = "100%",
height = "100%",
opacity = 0.75,
},
}
-- Font resizing logic (this will be triggered on window resize)
config.keys = {
{ key = "Enter", mods = "CTRL", action = wezterm.action({ SendString = "\x1b[13;5u" }) },
{ key = "Enter", mods = "SHIFT", action = wezterm.action({ SendString = "\x1b[13;2u" }) },
}
config.hyperlink_rules = {
-- URL matching rules
{
regex = "\\((\\w+://\\S+)\\)",
format = "$1",
highlight = 1,
},
{
regex = "\\[(\\w+://\\S+)\\]",
format = "$1",
highlight = 1,
},
{
regex = "\\{(\\w+://\\S+)\\}",
format = "$1",
highlight = 1,
},
{
regex = "<(\\w+://\\S+)>",
format = "$1",
highlight = 1,
},
{
regex = "[^(]\\b(\\w+://\\S+[)/a-zA-Z0-9-]+)",
format = "$1",
highlight = 1,
},
}
return config