-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwezterm.lua
More file actions
78 lines (66 loc) · 2.21 KB
/
wezterm.lua
File metadata and controls
78 lines (66 loc) · 2.21 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
local wezterm = require 'wezterm'
local cfg = wezterm.config_builder()
cfg.default_prog = {'/usr/bin/zsh', '-l'}
cfg.check_for_updates = false
cfg.unix_domains = {
{
name = 'unix',
},
}
-- maximize window on opening
wezterm.on("gui-startup", function(cmd)
local tab, pane, window = wezterm.mux.spawn_window(cmd or {})
window:gui_window():maximize()
end)
--cfg.default_gui_startup_args = { 'connect', 'unix' }
local term_font = "JetBrains Mono"
cfg.color_scheme = "Dark+"
cfg.font = wezterm.font(term_font)
cfg.harfbuzz_features = { 'calt=0', 'clig=0', 'liga=0' }
cfg.font_size = 12
-- set bold font really bold
cfg.font_rules = {
{
intensity = "Bold",
italic = false,
font = wezterm.font(term_font, { weight = "ExtraBold", stretch = "Normal", style = "Normal" }),
},
{
intensity = "Bold",
italic = true,
font = wezterm.font(term_font, { weight = "ExtraBold", stretch = "Normal", style = "Italic" }),
},
}
cfg.enable_scroll_bar = true
cfg.scrollback_lines = 10000
cfg.audible_bell = 'Disabled'
-- make the scrollbar thumb more visible
local scheme = wezterm.get_builtin_color_schemes()[cfg.color_scheme]
scheme.scrollbar_thumb = '#ffffff'
cfg.color_schemes = {
[cfg.color_scheme] = scheme
}
-- cfg.window_padding = {left=5, right=5, top=5, bottom=5}
cfg.inactive_pane_hsb = {saturation=0.9, brightness=0.6}
-- Tab Bar Options
cfg.use_fancy_tab_bar = true
cfg.enable_tab_bar = true
cfg.hide_tab_bar_if_only_one_tab = true
-- Keys
cfg.keys = {
{key='v', mods='ALT', action=wezterm.action{SplitHorizontal={domain='CurrentPaneDomain'}}},
{key='h', mods='ALT', action=wezterm.action{SplitVertical={domain='CurrentPaneDomain'}}},
{key='l', mods='ALT', action=wezterm.action.ShowLauncher},
{key='UpArrow', mods='SHIFT', action=wezterm.action.ScrollToPrompt(-1)},
{key='DownArrow', mods='SHIFT', action=wezterm.action.ScrollToPrompt(1)},
{key='t', mods='ALT', action=wezterm.action.ShowTabNavigator},
{key='p', mods='CTRL|ALT', action=wezterm.action.ShowLauncherArgs {flags='FUZZY|LAUNCH_MENU_ITEMS|DOMAINS|KEY_ASSIGNMENTS|WORKSPACES|COMMANDS'}},
}
cfg.mouse_bindings = {
{
event = { Down = { streak = 4, button = 'Left' } },
action = wezterm.action.SelectTextAtMouseCursor 'SemanticZone',
mods = 'NONE',
},
}
return cfg