-
Notifications
You must be signed in to change notification settings - Fork 0
/
.wezterm.lua
98 lines (92 loc) · 1.69 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
local wezterm = require("wezterm")
local config = {}
if wezterm.config_builder then
config = wezterm.config_builder()
end
-- editor
config.color_scheme = "nightfox"
config.window_background_opacity = 0.85
config.macos_window_background_blur = 20
config.window_decorations = "RESIZE"
config.hide_tab_bar_if_only_one_tab = true
config.show_new_tab_button_in_tab_bar = false
config.colors = {
tab_bar = {
inactive_tab_edge = "none",
},
}
-- Font
config.font = wezterm.font("Roboto Mono for Powerline")
config.font_size = 16
config.use_ime = true
-- Keymapping
local act = wezterm.action
config.keys = {
{
key = "f",
mods = "SHIFT|CMD",
action = wezterm.action.ToggleFullScreen,
},
{
key = "t",
mods = "SHIFT|CTRL",
action = act.SpawnTab("CurrentPaneDomain"),
},
{
key = "d",
mods = "CMD",
action = wezterm.action.SplitHorizontal({ domain = "CurrentPaneDomain" }),
},
{
key = "d",
mods = "CMD|SHIFT",
action = wezterm.action.SplitVertical({ domain = "CurrentPaneDomain" }),
},
{
key = "]",
mods = "CMD",
action = wezterm.action.ActivatePaneDirection("Next"),
},
{
key = "[",
mods = "CMD",
action = wezterm.action.ActivatePaneDirection("Prev"),
},
{
key = "o",
mods = "CTRL",
action = wezterm.action({
PaneSelect = {},
}),
},
{
key = "w",
mods = "CMD",
action = wezterm.action.CloseCurrentPane({ confirm = true }),
},
{
key = "LeftArrow",
mods = "CTRL",
action = act.SendKey({
key = "b",
mods = "META",
}),
},
{
key = "RightArrow",
mods = "CTRL",
action = act.SendKey({
key = "f",
mods = "META",
}),
},
{
key = "Backspace",
mods = "CTRL",
action = act.SendKey({
key = "w",
mods = "CTRL",
}),
},
}
return config