-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.wezterm.lua
64 lines (54 loc) · 1.32 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
-- Pull in the wezterm API
local wezterm = require 'wezterm'
local act = wezterm.action
local mux = wezterm.mux
-- This table will hold the configuration.
local config = {}
-- In newer versions of wezterm, use the config_builder which will
-- help provide clearer error messages
if wezterm.config_builder then
config = wezterm.config_builder()
end
-- This is where you actually apply your config choices
config.default_prog = { '/usr/bin/fish' }
-- Appearance
config.window_close_confirmation = 'NeverPrompt'
config.font_size = 13.0
config.color_scheme = 'MaterialDarker'
config.hide_tab_bar_if_only_one_tab = true
config.use_fancy_tab_bar = false
config.colors = {
background = '#1d1f21',
}
config.window_padding = {
left = 0,
right = 0,
top = 0,
bottom = 0
}
-- Keys
local keys = {
{
key = 't',
mods = 'CTRL',
action = act.SpawnTab('CurrentPaneDomain'),
},
{
key = 'w',
mods = 'CTRL|ALT',
action = act.CloseCurrentTab({ confirm = true }),
},
}
for i = 1, 8 do
table.insert(keys, {
key = tostring(i),
mods = 'CTRL',
action = act({ ActivateTab = i - 1 }),
})
end
config.keys = keys
wezterm.on('gui-startup', function(cmd)
local _, _, window = mux.spawn_window(cmd or {})
window:gui_window():maximize()
end)
return config