-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdot_wezterm.lua
80 lines (70 loc) · 1.88 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
local wezterm = require("wezterm")
local config = wezterm.config_builder()
config.colors = {
foreground = "#CBE0F0",
background = "#021c31",
cursor_bg = "#47FF9C",
cursor_border = "#47FF9C",
cursor_fg = "#011423",
selection_bg = "#033259",
selection_fg = "#CBE0F0",
ansi = { "#214969", "#E52E2E", "#44FFB1", "#FFE073", "#0FC5ED", "#a277ff", "#24EAF7", "#24EAF7" },
brights = { "#214969", "#E52E2E", "#44FFB1", "#FFE073", "#A277FF", "#a277ff", "#24EAF7", "#24EAF7" },
}
config.max_fps = 120
config.keys = {
-- Make Option-Left equivalent to Alt-b which many line editors interpret as backward-word
{
key = "LeftArrow",
mods = "OPT",
action = wezterm.action({ SendString = "\x1bb" }),
},
-- Make Option-Right equivalent to Alt-f; forward-word
{
key = "RightArrow",
mods = "OPT",
action = wezterm.action({ SendString = "\x1bf" }),
},
-- Select next tab with cmd-opt-left/right arrow
{
key = "LeftArrow",
mods = "CMD|OPT",
action = wezterm.action.ActivateTabRelative(-1),
},
{
key = "RightArrow",
mods = "CMD|OPT",
action = wezterm.action.ActivateTabRelative(1),
},
-- Select next pane with cmd-left/right arrow
{
key = "LeftArrow",
mods = "CMD",
action = wezterm.action({ ActivatePaneDirection = "Prev" }),
},
{
key = "RightArrow",
mods = "CMD",
action = wezterm.action({ ActivatePaneDirection = "Next" }),
},
-- on cmd-s, send esc, then ':w<enter>'. This makes cmd-s trigger a save action in neovim
{
key = "s",
mods = "CMD",
action = wezterm.action({ SendString = "\x1b:w\n" }),
},
}
config.font = wezterm.font("RobotoMono Nerd Font")
config.font_size = 13.5
config.window_padding = {
left = 2,
right = 2,
top = 4,
bottom = 0,
}
config.enable_tab_bar = false
config.window_decorations = "RESIZE"
config.window_background_opacity = 0.905
config.macos_window_background_blur = 2
config.window_close_confirmation = "NeverPrompt"
return config