-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.wezterm.lua
91 lines (81 loc) · 2.11 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
local wezterm = require 'wezterm'
local config = wezterm.config_builder()
config.color_scheme = 'Gruvbox Material (Gogh)'
-- config.color_scheme = 'Gruvbox dark, medium (base16)'
-- config.color_scheme = 'Gruvbox dark, pale (base16)'
config.font = wezterm.font('Liga SFMono Nerd Font', { weight = "Regular" })
config.font_size = 13
config.front_end = 'WebGpu'
config.freetype_load_target = "Normal"
config.freetype_render_target = 'Normal'
config.freetype_load_flags = 'NO_HINTING'
config.dpi = 144
config.enable_scroll_bar = true
config.bold_brightens_ansi_colors = 'No'
config.cell_width = 0.9
config.max_fps = 144
config.animation_fps = 30
-- Command Palette
config.command_palette_rows = 7
config.command_palette_font_size = 15
config.command_palette_bg_color = "#44382D"
config.command_palette_fg_color = "#c4a389"
-- Visual bell
config.audible_bell = 'Disabled'
config.visual_bell = {
target = "CursorColor",
fade_in_function = "EaseIn",
fade_in_duration_ms = 150,
fade_out_function = "EaseOut",
fade_out_duration_ms = 300,
}
config.enable_kitty_graphics = true
config.keys = {
{
key = 'p',
mods = 'CMD',
action = wezterm.action.ActivateCommandPalette,
},
{
key = 'd',
mods = 'CMD',
action = wezterm.action.SplitHorizontal,
},
{
key = 'd',
mods = 'CMD|SHIFT',
action = wezterm.action.SplitVertical,
},
{
key = 'w',
mods = 'CMD',
action = wezterm.action.CloseCurrentPane { confirm = true },
},
{
key = '[',
mods = 'CMD',
action = wezterm.action.ActivatePaneDirection 'Prev',
},
{
key = ']',
mods = 'CMD',
action = wezterm.action.ActivatePaneDirection 'Next',
},
}
-- Mouse
config.mouse_bindings = {
-- Change the default click behavior so that it only selects
-- text and doesn't open hyperlinks
{
event = { Up = { streak = 1, button = 'Left' } },
mods = 'NONE',
action = wezterm.action.CompleteSelection('ClipboardAndPrimarySelection'),
},
-- Open links on Cmd+click
{
event = { Up = { streak = 1, button = 'Left' } },
mods = 'CMD',
action = wezterm.action.OpenLinkAtMouseCursor,
},
}
return config