-
Notifications
You must be signed in to change notification settings - Fork 135
/
wezterm.lua
158 lines (146 loc) · 3.9 KB
/
wezterm.lua
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
local wezterm = require("wezterm")
local config = {}
if wezterm.config_builder then
config = wezterm.config_builder()
end
local fonts = {
"MonoLisa",
"Geist Mono",
"SF Mono",
"Monaspace Neon",
"Monaspace Xenon",
"Monaspace Krypton",
"Monaspace Radon",
"Monaspace Argon",
"Comic Code Ligatures",
-- "Liga SFMono Nerd Font",
-- "Fira Code Retina",
-- "DankMono Nerd Font",
-- "Monego Ligatures",
-- "Operator Mono Lig",
-- "Gintronic",
-- "Cascadia Code",
-- "JetBrainsMono Nerd Font Mono",
-- "Victor Mono",
-- "Inconsolata",
-- "TempleOS",
-- "Apercu Pro",
}
local emoji_fonts = { "Apple Color Emoji", "Joypixels", "Twemoji", "Noto Color Emoji", "Noto Emoji" }
-- https://www.monolisa.dev/playground
-- https://fontdrop.info/#/?darkmode=true
-- https://helpx.adobe.com/fonts/using/open-type-syntax.html
-- SF Mono
-- config.harfbuzz_features =
-- { "-c2sc", "liga", "ccmp", "locl", "-smcp", "-ss03", "-ss04", "ss05", "ss06", "ss07", "-ss08", "-ss09" }
-- Fira Code
-- https://github.com/tonsky/FiraCode/wiki/How-to-enable-stylistic-sets
-- config.harfbuzz_features = { "cv01", "cv02", "cv06", "cv10", "cv13", "ss01", "ss04", "ss05", "ss02" }
-- monaspace
-- config.harfbuzz_features =
-- { "calt", "liga", "dlig", "zero", "ss01", "ss02", "ss03", "ss04", "ss05", "ss06", "ss07", "ss08" }
-- geist /> === // 0O
-- config.harfbuzz_features =
-- { "calt", "liga", "dlig", "zero", "ss01", "ss02", "ss03", "ss04", "ss05", "ss06", "ss07", "ss08", "-ss09" }
-- monolisa
-- @ <=0xF \\ \n
config.harfbuzz_features =
{ "calt", "liga", "zero", "-ss01", "ss02", "-ss03", "ss04", "ss05", "-ss06", "-ss07", "-ss08", "-ss09", "ss10", "ss11", "ss12", "-ss13", "ss14", "ss15", "ss16", "ss17", "ss18" }
config.font = wezterm.font_with_fallback({ fonts[1], emoji_fonts[1], emoji_fonts[2] })
-- config.disable_default_key_bindings = true
config.front_end = "WebGpu"
config.enable_scroll_bar = false
config.scrollback_lines = 10240
config.font_size = 18
config.enable_tab_bar = false
config.hide_tab_bar_if_only_one_tab = false
config.automatically_reload_config = true
config.default_cursor_style = "BlinkingBar"
config.initial_cols = 80
config.initial_rows = 25
config.use_fancy_tab_bar = true
config.tab_bar_at_bottom = false
-- config.window_decorations = "RESIZE|TITLE"
-- config.window_decorations = "INTEGRATED_BUTTONS|RESIZE"
config.window_padding = {
left = 30,
right = 30,
top = 30,
bottom = 30,
}
config.window_frame = {
font = wezterm.font({ family = "SF Mono" }),
-- font = wezterm.font({ family = "Geist Mono" }),
active_titlebar_bg = "#1e1e1e",
inactive_titlebar_bg = "#1e1e1e",
font_size = 15.0,
}
config.color_scheme = "OneDark (base16)"
config.color_scheme = "OneDark"
config.color_schemes = {
["OneDark"] = {
foreground = "#f0f6fc",
background = "#1e1e1e",
-- background = "#21262d",
-- background = "#1e1e2e",
-- background = "#1a1b26",
cursor_bg = "#b1cad8",
cursor_fg = "#21262d",
cursor_border = "#CF7277",
selection_fg = "#21262d",
selection_bg = "#2A4668",
scrollbar_thumb = "#30363d",
split = "#6e7681",
ansi = {
"#8b949e",
"#ff7b72",
"#aff5b4",
"#FFE08C",
"#79c0ff",
"#d2a8ff",
"#a5d6ff",
"#c9d1d9",
},
brights = {
"#8b949e",
"#ff7b72",
"#aff5b4",
"#FFE08C",
"#79c0ff",
"#d2a8ff",
"#a5d6ff",
"#c9d1d9",
},
},
}
config.colors = {
tab_bar = {
background = "#808080",
active_tab = {
bg_color = "#1e1e1e",
fg_color = "#c8c8c8",
},
inactive_tab = {
bg_color = "#30363d",
fg_color = "#8b949e",
},
inactive_tab_hover = {
bg_color = "#484f58",
fg_color = "#b1bac4",
},
new_tab = {
bg_color = "#30363d",
fg_color = "#8b949e",
},
new_tab_hover = {
bg_color = "#484f58",
fg_color = "#b1bac4",
},
},
}
-- local act = wezterm.action
-- config.keys = {
-- { key = "a", mods = "ctrl", action = act.ActivateTabRelative(-1) },
-- { key = "b", mods = "ctrl", action = act.ActivateTabRelative(1) },
-- }
return config