-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig-wezterm-linux.conf
More file actions
57 lines (52 loc) · 1.77 KB
/
config-wezterm-linux.conf
File metadata and controls
57 lines (52 loc) · 1.77 KB
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
-- For wezterm (linux) to use similar to iTerm2 key.
-- on Linux: ~/.config/wezterm/wezterm.lua
-- on Windows: %USERPROFILE%/.wezterm.lua
local wezterm = require 'wezterm'
local config = wezterm.config_builder()
config.font = wezterm.font 'JetBrains Mono'
config.font_size = 10.0
config.color_scheme = 'Tokyo Night'
config.window_background_opacity = 0.9
config.keys = {
-- Map Alt + 1 through 9 to switch to tabs 0 through 8
{ key = '1', mods = 'ALT', action = wezterm.action.ActivateTab(0) },
{ key = '2', mods = 'ALT', action = wezterm.action.ActivateTab(1) },
{ key = '3', mods = 'ALT', action = wezterm.action.ActivateTab(2) },
{ key = '4', mods = 'ALT', action = wezterm.action.ActivateTab(3) },
{ key = '5', mods = 'ALT', action = wezterm.action.ActivateTab(4) },
{ key = '6', mods = 'ALT', action = wezterm.action.ActivateTab(5) },
{ key = '7', mods = 'ALT', action = wezterm.action.ActivateTab(6) },
{ key = '8', mods = 'ALT', action = wezterm.action.ActivateTab(7) },
{ key = '9', mods = 'ALT', action = wezterm.action.ActivateTab(8) },
{
-- Ctrl + Shift + Enter: toggle zoom
key = 'Enter',
mods = 'CTRL|SHIFT',
action = wezterm.action.TogglePaneZoomState,
},
{
-- Ctrl + Alt + Enter: toggle zoom
key = 'Enter',
mods = 'CTRL|ALT',
action = wezterm.action.TogglePaneZoomState,
},
{
-- Ctrl + Shift + D: split vertical
key = 'D',
mods = 'CTRL|SHIFT',
action = wezterm.action.SplitVertical({ domain = 'CurrentPaneDomain' })
},
{
-- Ctrl + ]: move to next pane
key = ']',
mods = 'CTRL',
action = wezterm.action.ActivatePaneDirection('Next'),
},
{
-- Ctrl + [: move to previous pane
key = '[',
mods = 'CTRL',
action = wezterm.action.ActivatePaneDirection('Prev'),
},
}
return config