-
Notifications
You must be signed in to change notification settings - Fork 0
/
wezterm.lua
86 lines (77 loc) · 1.95 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
local wezterm = require 'wezterm'
local config = {}
config.audible_bell = "Disabled"
if wezterm.config_builder then
config = wezterm.config_builder()
end
config.window_background_opacity = 0.8
config.font = wezterm.font_with_fallback {
'Fira Code',
'JetBrains Mono',
}
config.warn_about_missing_glyphs = false
config.inactive_pane_hsb = {
saturation = 0.7,
brightness = 0.7,
}
config.keys = {
{
key = 'n',
mods = 'SHIFT|ALT',
action = wezterm.action.ToggleFullScreen,
},
{
key = 'LeftArrow',
mods = 'ALT',
action = wezterm.action.ActivatePaneDirection 'Left',
},
{
key = 'RightArrow',
mods = 'ALT',
action = wezterm.action.ActivatePaneDirection 'Right',
},
{
key = 'UpArrow',
mods = 'ALT',
action = wezterm.action.ActivatePaneDirection 'Up',
},
{
key = 'DownArrow',
mods = 'ALT',
action = wezterm.action.ActivatePaneDirection 'Down',
},
{
key = 'w',
mods = 'CTRL|SHIFT',
action = wezterm.action.CloseCurrentTab { confirm = true }
},
{ key = 'LeftArrow', mods = 'SHIFT|CTRL', action = wezterm.action.MoveTabRelative(-1) },
{ key = 'RightArrow', mods = 'SHIFT|CTRL', action = wezterm.action.MoveTabRelative(1) },
{ key = 'LeftArrow', mods = 'CTRL', action = wezterm.action.ActivateTabRelative(-1) },
{ key = 'RightArrow', mods = 'CTRL', action = wezterm.action.ActivateTabRelative(1) },
{
key = 'v',
mods = 'SHIFT|ALT',
action = wezterm.action.SplitHorizontal { domain = 'CurrentPaneDomain' },
},
{
key = 's',
mods = 'SHIFT|ALT',
action = wezterm.action.SplitVertical { domain = 'CurrentPaneDomain' },
},
{
key = '^',
mods = 'CTRL',
action = wezterm.action.Nop
},
{
key = '6',
mods = 'CTRL',
action = wezterm.action.Nop
}
}
-- wezterm.on('gui-startup', function(cmd)
-- local _, _, window = wezterm.mux.spawn_window(cmd or {})
-- window:gui_window():toggle_fullscreen()
-- end)
return config