-
Notifications
You must be signed in to change notification settings - Fork 2
/
wezterm.lua
71 lines (64 loc) · 2.21 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
local wezterm = require 'wezterm';
-- The filled in variant of the < symbol
local SOLID_LEFT_ARROW = utf8.char(0xe0b2)
-- The filled in variant of the > symbol
local SOLID_RIGHT_ARROW = utf8.char(0xe0b0)
return {
use_ime = true,
send_composed_key_when_left_alt_is_pressed = false,
send_composed_key_when_right_alt_is_pressed = false,
font = wezterm.font_with_fallback({
"Noto Sans Mono",
"JetBrains Mono",
"NanumBarunGothic",
"AppleGothic",
}, {stretch="Normal"}),
font_size = 12.5,
line_height = 1.0,
dpi_by_screen = {
-- Some external monitor requires custom DPI setting.
-- https://github.com/wez/wezterm/issues/4096
['LG HDR WFHD'] = 81.75,
},
keys = {
-- Override SUPER+w with CloseCurrentPane (instead of CloseCurrentTab)
{ key="w", mods="SUPER",
action=wezterm.action{CloseCurrentPane={confirm=true}}},
-- Make Option-Left/Right equivalent to Alt-b/f which many line editors interpret as backward-word and forward-word
{ key="LeftArrow", mods="OPT",
action=wezterm.action{SendString="\x1bb"}},
{ key="RightArrow", mods="OPT",
action=wezterm.action{SendString="\x1bf"}},
-- Pane related shortkeys (most came from iTerm2)
{ key="d", mods="SUPER",
action=wezterm.action{SplitHorizontal={domain="CurrentPaneDomain"}}},
{ key="d", mods="SUPER|SHIFT",
action=wezterm.action{SplitVertical={domain="CurrentPaneDomain"}}},
{ key="Enter", mods="SUPER|SHIFT",
action="TogglePaneZoomState"},
{ key="LeftArrow", mods="OPT|SUPER",
action=wezterm.action{ActivatePaneDirection="Left"}},
{ key="RightArrow", mods="OPT|SUPER",
action=wezterm.action{ActivatePaneDirection="Right"}},
{ key="UpArrow", mods="OPT|SUPER",
action=wezterm.action{ActivatePaneDirection="Up"}},
{ key="DownArrow", mods="OPT|SUPER",
action=wezterm.action{ActivatePaneDirection="Down"}},
-- Debug Overlay
{ key="l", mods="SHIFT|CTRL", action="ShowDebugOverlay"},
},
use_fancy_tab_bar = true,
window_padding = {
left = 8,
right = 8,
top = 0,
bottom = 0,
},
mouse_bindings = {
{
event = { Up = { streak = 1, button = "Left" } },
mods = "NONE",
action = wezterm.action.Nop,
},
}
}