-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdot_wezterm.lua
86 lines (72 loc) · 1.84 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
81
82
83
84
85
-- Pull in the wezterm API
local wezterm = require 'wezterm'
-- This table will hold the configuration.
local config = {}
local act = wezterm.action
-- In newer versions of wezterm, use the config_builder which will
-- help provide clearer error messages
if wezterm.config_builder then
config = wezterm.config_builder()
end
-- This is where you actually apply your config choices
-- change config now
-- config.default_domain = 'WSL:Ubuntu-22.04'
-- For example, changing the color scheme:
-- config.color_scheme = 'Batman'
-- Set background to same color as neovim
config.color_scheme = 'Catppuccin Macchiato'
config.font = wezterm.font_with_fallback {
'JetBrains Mono',
'nonicons',
}
config.keys = {
{
key = 'h',
mods = 'CTRL|SHIFT',
action = act.ActivatePaneDirection 'Left',
},
{
key = 'j',
mods = 'CTRL|SHIFT',
action = act.ActivatePaneDirection 'Right',
},
{
key = 'UpArrow',
mods = 'CTRL|SHIFT',
action = act.ActivatePaneDirection 'Up',
},
{
key = 'DownArrow',
mods = 'CTRL|SHIFT',
action = act.ActivatePaneDirection 'Down',
},
{
key = 'h',
mods = 'CTRL|SHIFT|ALT',
action = wezterm.action.SplitHorizontal { domain = 'CurrentPaneDomain' },
},
{
key = 'v',
mods = 'CTRL|SHIFT|ALT',
action = wezterm.action.SplitVertical { domain = 'CurrentPaneDomain' },
},
{
key = 'w',
mods = 'CTRL|ALT',
action = wezterm.action.CloseCurrentPane { confirm = false },
},
}
-- default is true, has more "native" look
config.use_fancy_tab_bar = false
-- I don't like putting anything at the ege if I can help it.
config.enable_scroll_bar = false
config.window_padding = {
left = 0,
right = 0,
top = 0,
bottom = 0,
}
config.tab_bar_at_bottom = true
config.freetype_load_target = "HorizontalLcd"
-- and finally, return the configuration to wezterm
return config