-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathwezterm.lua
More file actions
88 lines (80 loc) · 1.95 KB
/
wezterm.lua
File metadata and controls
88 lines (80 loc) · 1.95 KB
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
local wezterm = require 'wezterm'
local config = wezterm.config_builder()
-- General
config.font_size = 19
config.line_height = 1.1
config.font = wezterm.font "BlexMono Nerd Font Mono"
config.color_scheme = 'tokyonight_night'
config.window_close_confirmation = 'NeverPrompt' -- For quitting WezTerm
config.default_prog = { '/run/current-system/sw/bin/fish', '-l' }
config.default_prog = { '/opt/homebrew/bin/fish', '-l' }
config.default_prog = { '/opt/homebrew/bin/fish', '-l' }
-- Performance Hack
config.max_fps = 120
config.animation_fps = 120
-- Cursor
config.colors = {
cursor_bg = '#7aa2f7',
cursor_border = '#7aa2f7',
}
config.inactive_pane_hsb = {
saturation = 0.5,
brightness = 0.3,
}
-- Appearance
config.window_decorations = "RESIZE"
config.enable_tab_bar = false
-- config.tab_bar_at_bottom = true
config.window_padding = {
bottom = 0
}
-- Key bindings
config.keys = {
{
key = 'w',
mods = 'CMD',
action = wezterm.action.CloseCurrentPane { confirm = false },
},
{
key = 'd',
mods = 'CMD',
action = wezterm.action.SplitHorizontal { domain = 'CurrentPaneDomain' },
},
{
key = 'd',
mods = 'CMD|SHIFT',
action = wezterm.action.SplitVertical { domain = 'CurrentPaneDomain' },
},
{
key = 'k',
mods = 'CMD',
action = wezterm.action.SendString 'clear\n'
},
{
key = '+',
mods = 'CTRL',
action = wezterm.action.Multiple {
wezterm.action.IncreaseFontSize,
wezterm.action.EmitEvent('show-zoom'),
},
},
{
key = '-',
mods = 'CTRL',
action = wezterm.action.Multiple {
wezterm.action.DecreaseFontSize,
wezterm.action.EmitEvent('show-zoom'),
},
},
{
key = '0',
mods = 'CTRL',
action = wezterm.action.Multiple {
wezterm.action.ResetFontSize,
wezterm.action.EmitEvent('show-zoom'),
},
},
}
-- Ensure Option key sends composed characters (e.g., #)
config.send_composed_key_when_left_alt_is_pressed = true
return config