-
Notifications
You must be signed in to change notification settings - Fork 0
/
wezterm.lua
55 lines (53 loc) · 2.48 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
local wezterm = require 'wezterm';
return {
-- color_scheme = "Monokai Remastered",
font = wezterm.font_with_fallback({ "Iosevka Term Curly", "FiraCode Nerd Font", "FiraCode NF" }),
line_height = 1.0,
window_background_opacity = 0.8,
text_background_opacity = 1.0,
hide_tab_bar_if_only_one_tab = true,
use_fancy_tab_bar = false,
scrollback_lines = 3500,
warn_about_missing_glyphs = false,
leader = { key = "w", mods = "CTRL|ALT", timeout_milliseconds = 3000 },
keys = {
{ key = "q", mods = "LEADER", action = wezterm.action { CloseCurrentPane = { confirm = true } } },
{ key = "%", mods = "LEADER|SHIFT", action = wezterm.action { SplitHorizontal = { domain = "CurrentPaneDomain" } } },
{ key = "\"", mods = "LEADER|SHIFT", action = wezterm.action { SplitVertical = { domain = "CurrentPaneDomain" } } },
{ key = "LeftArrow", mods = "LEADER", action = wezterm.action { ActivatePaneDirection = "Left" } },
{ key = "LeftArrow", mods = "LEADER|CTRL", action = wezterm.action { AdjustPaneSize = { "Left", 1 } } },
{ key = "RightArrow", mods = "LEADER", action = wezterm.action { ActivatePaneDirection = "Right" } },
{ key = "RightArrow", mods = "LEADER|CTRL", action = wezterm.action { AdjustPaneSize = { "Right", 1 } } },
{ key = "UpArrow", mods = "LEADER", action = wezterm.action { ActivatePaneDirection = "Up" } },
{ key = "UpArrow", mods = "LEADER|CTRL", action = wezterm.action { AdjustPaneSize = { "Up", 1 } } },
{ key = "DownArrow", mods = "LEADER", action = wezterm.action { ActivatePaneDirection = "Down" } },
{ key = "DownArrow", mods = "LEADER|CTRL", action = wezterm.action { AdjustPaneSize = { "Down", 1 } } },
{ key = "r", mods = "CTRL|SHIFT", action = "ReloadConfiguration" },
-- disable alt-enter making fullscreen so it can be used in repls etc
{ key = "Enter", mods = "LEADER|ALT", action = wezterm.action.ToggleFullScreen },
{
key = "Enter",
mods = "ALT",
action = wezterm.action.DisableDefaultAssignment,
},
},
ssh_domains = {
{
name = "feynman",
remote_address = "feynman",
username = "adam",
},
},
visual_bell = {
fade_in_function = "EaseIn",
fade_in_duration_ms = 150,
fade_out_function = "EaseOut",
fade_out_duration_ms = 150,
target = "BackgroundColor",
},
colors = {
visual_bell = "#742739",
compose_cursor = "orange",
},
exit_behavior = "Close",
}