-
Notifications
You must be signed in to change notification settings - Fork 1
/
wezterm.lua
88 lines (76 loc) · 1.71 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
-- Pull in the wezterm API
local wezterm = require 'wezterm'
function scheme_for_appearance(appearance)
if appearance:find 'Dark' then
return 'Builtin Solarized Dark'
else
return 'Novel (Gogh)'
end
end
function get_appearance()
if wezterm.gui then
return wezterm.gui.get_appearance()
end
return 'Dark'
end
-- 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
-- and finally, return the configuration to wezterm
config.font = wezterm.font {
family ='FiraCode Nerd Font',
}
config.font_rules = {
{
intensity = 'Bold',
italic = true,
font = wezterm.font {
family = 'Iosevka Term',
weight = 'Bold',
style = 'Italic',
stretch = 'Expanded'
},
},
{
italic = true,
intensity = 'Half',
font = wezterm.font {
family = 'Iosevka Term',
weight = 'DemiBold',
style = 'Italic',
stretch = 'Expanded'
},
},
{
italic = true,
intensity = 'Normal',
font = wezterm.font {
family = 'Iosevka Term',
style = 'Italic',
stretch = 'Expanded'
},
},
}
config.font_size = 16.0
config.line_height = 1.0
config.harfbuzz_features = {"cv02", "ss05", "ss07", "ss09"}
-- These features alter these (in order):
-- g
-- @
-- !~ and =~
-- >>= <<= ||= |=
config.enable_tab_bar = false
config.window_background_opacity = 0.99
config.window_padding = {
left = 10,
right = 10,
top = 0,
bottom = 0,
}
config.color_scheme = scheme_for_appearance(get_appearance())
return config