-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathwezterm.lua
72 lines (66 loc) · 1.69 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
local wezterm = require 'wezterm'
local mux = wezterm.mux
local act = wezterm.action
-- toggle full-screeen on startup
wezterm.on("gui-startup", function()
local tab, pane, window = mux.spawn_window(cmd or {})
window:gui_window():toggle_fullscreen()
end)
local config = {
check_for_updates = true,
use_ime = true,
-- window
window_padding = {
left = 0,
right = 0,
top = 0,
bottom = 0,
},
native_macos_fullscreen_mode = true,
tab_bar_at_bottom = true,
-- colors
color_scheme = 'nordfox',
-- keys
keys = {
{ key = 'LeftArrow', mods = 'SUPER', action = act.ActivateTabRelative(-1) },
{ key = 'RightArrow', mods = 'SUPER', action = act.ActivateTabRelative(1) },
{ key = 't', mods = 'SUPER', action = act.SpawnTab 'CurrentPaneDomain' },
},
-- font
font = wezterm.font_with_fallback({
family='Monaspace Neon',
harfbuzz_features={ 'calt', 'liga', 'dlig', 'ss01', 'ss02', 'ss03', 'ss04', 'ss05', 'ss06', 'ss07', 'ss08' },
stretch='UltraCondensed',
}),
font_rules = {
{ -- Italic
intensity = 'Normal',
italic = true,
font = wezterm.font({
-- family="Monaspace Radon", -- script style
family='Monaspace Xenon', -- courier-like
style = 'Italic',
})
},
{ -- Bold
intensity = 'Bold',
italic = false,
font = wezterm.font({
family='Monaspace Krypton',
family='Monaspace Krypton',
-- weight='ExtraBold',
weight='Bold',
})
},
{ -- Bold Italic
intensity = 'Bold',
italic = true,
font = wezterm.font({
family='Monaspace Xenon',
style='Italic',
weight='Bold',
})
},
},
}
return config