-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathwezterm.lua
More file actions
41 lines (36 loc) · 1.41 KB
/
wezterm.lua
File metadata and controls
41 lines (36 loc) · 1.41 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
local wezterm = require 'wezterm'
local act = wezterm.action
--local mux = wezterm.mux
local config = {}
config.color_scheme = 'Tomorrow Night (Gogh)'
-- config.color_scheme = 'Tomorrow (Gogh)'
config.colors = {
scrollbar_thumb = '#555',
}
config.font = wezterm.font('JetBrains Mono')
config.font = wezterm.font('Iosevka Nerd Font Mono')
config.font_size = 15
config.line_height = 1.0
--config.initial_cols = 120
config.initial_cols = 130
config.initial_rows = 35
config.adjust_window_size_when_changing_font_size = true
config.adjust_window_size_when_changing_font_size = false
config.enable_scroll_bar = true
config.scrollback_lines = 10000
config.keys = {
{ key = 'LeftArrow', mods = 'CMD', action = act.ActivateTabRelative(-1) },
{ key = 'RightArrow', mods = 'CMD', action = act.ActivateTabRelative(1) },
{ key = '0', mods = 'CMD|OPT', action = act.ResetFontAndWindowSize },
{ key = 'LeftArrow', mods = 'OPT', action = act.SendString '\x1bb' },
{ key = 'RightArrow', mods = 'OPT', action = act.SendString '\x1bf' },
}
config.mouse_bindings = {
{ event = { Up = { streak = 1, button = 'Left' } }, mods = 'NONE', action = act.CompleteSelection 'ClipboardAndPrimarySelection' },
{ event = { Up = { streak = 1, button = 'Left' } }, mods = 'OPT', action = act.OpenLinkAtMouseCursor },
}
local ok, localconfig = pcall(require, "local")
if(ok) then
localconfig.apply_to_config(config)
end
return config