-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdot_wezterm.lua
85 lines (75 loc) · 1.6 KB
/
dot_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
-- Pull in the wezterm API
local wezterm = require("wezterm")
-- This will hold the configuration.
local config = wezterm.config_builder()
-- This is where you actually apply your config choices
-- For example, changing the color scheme:
config.color_scheme = "Catppuccin Macchiato"
config.font = wezterm.font("FiraMono Nerd Font", { weight = "Medium" })
config.font_size = 12
config.window_decorations = "RESIZE"
config.window_padding = {
left = 0,
right = 0,
top = 0,
bottom = 0,
}
config.leader = { key = "Space", mods = "CTRL", timeout_milliseconds = 1000 }
local act = wezterm.action
config.keys = {
{
key = "v",
mods = "LEADER",
action = act.SplitHorizontal({ domain = "CurrentPaneDomain" }),
},
{
key = "b",
mods = "LEADER",
action = act.SplitVertical({ domain = "CurrentPaneDomain" }),
},
{
key = "x",
mods = "LEADER",
action = act.CloseCurrentPane({ confirm = true }),
},
{
key = "a",
mods = "LEADER",
action = act.SendKey({ key = "a", mods = "CTRL" }),
},
-- Sesh
{
key = "k",
mods = "CTRL",
action = act.Multiple({
act.SendKey({ key = "a", mods = "CTRL" }),
act.SendKey({ key = "t", mods = "SHIFT" }),
}),
},
-- Nav
{
key = "LeftArrow",
mods = "OPT",
action = act.SendKey({
key = "b",
mods = "ALT",
}),
},
{
key = "RightArrow",
mods = "OPT",
action = act.SendKey({ key = "f", mods = "ALT" }),
},
{
key = "RightArrow",
mods = "SUPER",
action = act.SendKey({ key = "End" }),
},
{
key = "LeftArrow",
mods = "SUPER",
action = act.SendKey({ key = "Home" }),
},
}
-- and finally, return the configuration to wezterm
return config