-
Notifications
You must be signed in to change notification settings - Fork 0
/
.wezterm.lua
76 lines (66 loc) · 1.54 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
-- Pull in the wezterm API
local wezterm = require 'wezterm'
-- This table will hold the configuration.
local config = {}
-- In newer versions of wezterm, use the config_builder which will
-- help provide clearer error messages
if wezterm.config_builder then
config = wezterm.config_builder()
end
default_gui_startup_args = {'start', '--always-new-process'}
-- This is where you actually apply your config choices
-- For example, changing the color scheme:
config.color_scheme = 'AdventureTime'
config.font_size = 10
config.keys = {
-- Tab Navigation
{
key = 'RightArrow',
mods = 'ALT',
action = wezterm.action.ActivateTabRelative(1),
},
{
key = 'LeftArrow',
mods = 'ALT',
action = wezterm.action.ActivateTabRelative(-1),
},
-- Split command
{
key = 'd',
mods = 'ALT',
action = wezterm.action.SplitHorizontal,
},
{
key = 'd',
mods = 'ALT|SHIFT',
action = wezterm.action.SplitVertical,
},
{
key = 'RightArrow',
mods = 'CMD',
action = wezterm.action.SendKey { key = 'End'}
},
{
key = 'LeftArrow',
mods = 'CMD',
action = wezterm.action.SendKey { key = 'Home'}
},
{
key = 'UpArrow',
mods = 'CMD',
action = wezterm.action.SendKey { key = 'PageUp'}
},
{
key = 'DownArrow',
mods = 'CMD',
action = wezterm.action.SendKey { key = 'PageDown'}
},
-- Ignore default assignment
{
key = 'n',
mods = 'CTRL|SHIFT',
action = wezterm.action.DisableDefaultAssignment
},
}
-- and finally, return the configuration to wezterm
return config