-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwezterm.lua
More file actions
73 lines (62 loc) · 1.96 KB
/
wezterm.lua
File metadata and controls
73 lines (62 loc) · 1.96 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
-- wezterm configuration.
-- Place this in ~/.wezterm.lua (linux) or %USERPROFILE%\.wezterm.lua (Windows)
-- Pull in the wezterm API
local wezterm = require 'wezterm'
-- This will hold the configuration.
local config = wezterm.config_builder()
-- modify config obj to set configuration
-- keybindings
config.keys = {
-- disable "new tab"
{
key = 't',
mods = 'CTRL|SHIFT',
action = wezterm.action.DisableDefaultAssignment,
},
-- disable "close current tab"
{
key = 'w',
mods = 'CTRL|SHIFT',
action = wezterm.action.DisableDefaultAssignment,
},
}
-- styling
config.color_scheme = 'Monokai Vivid'
config.colors = {
foreground = '#fbfbfb',
background = '#000000',
cursor_bg = '#ffffff',
cursor_fg = '#000000',
}
-- make ANSI "blue" a little brighter for readability:
-- borrow its definition from mintty's
-- [hemlholtz theme](https://github.com/mintty/mintty/blob/master/themes/helmholtz)
local blue_idx = 5
config.colors.ansi = wezterm.get_builtin_color_schemes()[config.color_scheme].ansi
config.colors.brights = wezterm.get_builtin_color_schemes()[config.color_scheme].brights
config.colors.ansi[blue_idx] = '#005dff'
config.colors.brights[blue_idx] = '#7d97ff'
config.enable_scroll_bar = false
config.enable_tab_bar = false
config.font = wezterm.font('Cascadia Mono')
config.font_size = 11.0
-- minimize window padding to not waste space
config.window_padding = {
left = '1pt',
right = '1pt',
top = '1pt',
bottom = '1pt',
}
-- specific TERM variable. Install wezterm terminfo for this to work,
-- see wezfurlong.org/wezterm/config/lua/config/term.html for more details
config.term = 'wezterm'
-- windows specific cfg
if string.find(wezterm.target_triple, 'windows') then
-- run default WSL distro
-- arrays in lua start at index 1...
config.default_domain = wezterm.default_wsl_domains()[1].name
else -- linux specific cfg
config.window_background_opacity = 0.85
end
-- return modified config
return config