-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathwezterm.lua
72 lines (65 loc) · 2.4 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
local w = require 'wezterm'
local c = w.config_builder()
local a = w.action
c.front_end = 'WebGpu'
-- Appearance
c.color_scheme = 'iTerm2 Dark Background'
c.font = w.font('MonacoLigaturized Nerd Font')
c.font_size = 16
c.audible_bell = 'Disabled'
c.visual_bell = {
fade_in_function = 'EaseIn',
fade_in_duration_ms = 1,
fade_out_function = 'EaseOut',
fade_out_duration_ms = 200,
}
c.colors = {
visual_bell = '#200000',
}
c.adjust_window_size_when_changing_font_size = false
c.native_macos_fullscreen_mode = true
c.send_composed_key_when_right_alt_is_pressed = false
c.show_new_tab_button_in_tab_bar = false
c.show_tab_index_in_tab_bar = false
c.hide_tab_bar_if_only_one_tab = true
c.window_decorations = 'INTEGRATED_BUTTONS|RESIZE'
c.window_frame = {
border_left_width = '2px',
border_right_width = '2px',
border_bottom_height = '2px',
border_top_height = '2px',
border_left_color = '#333',
border_right_color = '#333',
border_bottom_color = '#333',
border_top_color = '#333',
}
c.window_padding = {
left = '9px',
right = '9px',
top = '3px',
bottom = '3px',
}
c.keys = {
{mods = 'CMD', key = 'Enter', action = a.ToggleFullScreen},
{mods = 'CMD', key = '[', action = a.ActivatePaneDirection('Prev')},
{mods = 'CMD', key = ']', action = a.ActivatePaneDirection('Next')},
}
if w.target_triple ~= 'x86_64-pc-windows-msvc' then
table.insert(c.keys, {mods = 'CMD', key = 'm', action = a.SplitVertical})
table.insert(c.keys, {mods = 'CMD', key = 'l', action = a.SplitHorizontal})
else
-- Windows specific settings
c.default_domain = 'WSL:Arch'
table.insert(c.keys, {mods = 'CMD', key = '-', action = a.SplitVertical})
table.insert(c.keys, {mods = 'CMD', key = '\\', action = a.SplitHorizontal})
table.insert(c.keys, {mods = 'CTRL', key = '1', action = a.ActivateTab(0)})
table.insert(c.keys, {mods = 'CTRL', key = '2', action = a.ActivateTab(1)})
table.insert(c.keys, {mods = 'CTRL', key = '3', action = a.ActivateTab(2)})
table.insert(c.keys, {mods = 'CTRL', key = '4', action = a.ActivateTab(3)})
table.insert(c.keys, {mods = 'CTRL', key = '5', action = a.ActivateTab(4)})
table.insert(c.keys, {mods = 'CTRL', key = '6', action = a.ActivateTab(5)})
table.insert(c.keys, {mods = 'CTRL', key = '7', action = a.ActivateTab(6)})
table.insert(c.keys, {mods = 'CTRL', key = '8', action = a.ActivateTab(7)})
table.insert(c.keys, {mods = 'CTRL', key = '9', action = a.ActivateTab(8)})
end
return c