-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.wezterm.lua
169 lines (153 loc) · 3.36 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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
local wezterm = require('wezterm')
local act = wezterm.action
local config = {}
if wezterm.config_builder then
config = wezterm.config_builder()
end
-- Key bindings
config.keys = {
-- Tab management
{
key = 't',
mods = 'CMD', -- Use CTRL on Linux/Windows, CMD on macOS
action = act.SpawnTab 'DefaultDomain',
},
{
key = 'Enter',
mods = 'CMD',
action = act.ToggleFullScreen,
},
{
key = 'w',
mods = 'CMD', -- Use CTRL on Linux/Windows, CMD on macOS
action = act.CloseCurrentTab { confirm = false },
},
-- Switch to tabs using CMD + number
{
key = '1',
mods = 'CMD',
action = act.ActivateTab(0),
},
{
key = '2',
mods = 'CMD',
action = act.ActivateTab(1),
},
{
key = '3',
mods = 'CMD',
action = act.ActivateTab(2),
},
{
key = '4',
mods = 'CMD',
action = act.ActivateTab(3),
},
{
key = '5',
mods = 'CMD',
action = act.ActivateTab(4),
},
-- Switch between tabs using CMD + [ or ]
{
key = '[',
mods = 'CMD',
action = act.ActivateTabRelative(-1),
},
{
key = ']',
mods = 'CMD',
action = act.ActivateTabRelative(1),
},
-- This will create a new split and run the `top` program inside it
{
key = '-',
mods = 'CMD',
action = act.SplitPane {
direction = 'Left',
size = { Percent = 50 },
},
},
{
key = 'n',
mods = 'CMD',
action = act { ActivatePaneDirection = "Next" },
},
{
key = 'p',
mods = 'CMD',
action = act { ActivatePaneDirection = "Prev" },
},
}
-- Color scheme inspired by popular dark themes
config.colors = {
-- Background and foreground
foreground = '#E2E2E3',
background = '#0E0E0E',
-- Cursor colors
cursor_bg = '#F5E0DC',
cursor_fg = '#1C1B1D',
cursor_border = '#F5E0DC',
-- Selection colors
selection_fg = '#1C1B1D',
selection_bg = '#F5E0DC',
-- Normal colors
ansi = {
'#1C1B1D', -- Black
'#F28FAD', -- Red
'#ABE9B3', -- Green
'#FAE3B0', -- Yellow
'#96CDFB', -- Blue
'#DDB6F2', -- Magenta
'#89DCEB', -- Cyan
'#D9E0EE', -- White
},
-- Bright colors
brights = {
'#575268', -- Bright Black
'#F28FAD', -- Bright Red
'#ABE9B3', -- Bright Green
'#FAE3B0', -- Bright Yellow
'#96CDFB', -- Bright Blue
'#DDB6F2', -- Bright Magenta
'#89DCEB', -- Bright Cyan
'#D9E0EE', -- Bright White
},
}
-- Font configuration
config.font = wezterm.font_with_fallback({
'JetBrainsMono Nerd Font',
'Fira Code',
'Symbols Nerd Font Mono',
})
config.font_size = 16.0
config.line_height = 1.2
-- Window configuration
config.window_background_opacity = 0.95
config.window_decorations = "RESIZE"
config.window_padding = {
left = 0,
right = 0,
top = 0,
bottom = 0,
}
-- Tab bar configuration
config.use_fancy_tab_bar = false
config.tab_bar_at_bottom = true
config.hide_tab_bar_if_only_one_tab = true
-- Cursor configuration
config.default_cursor_style = 'BlinkingBar'
config.cursor_blink_rate = 800
config.animation_fps = 60
-- General UI configuration
config.enable_scroll_bar = false
config.scrollback_lines = 10000
config.enable_wayland = true
config.enable_kitty_graphics = true
config.window_close_confirmation = 'NeverPrompt'
-- Performance settings
config.front_end = "WebGpu"
config.webgpu_power_preference = "HighPerformance"
config.native_macos_fullscreen_mode = true
config.max_fps = 120
return config