-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathwezterm.lua
More file actions
140 lines (126 loc) · 2.87 KB
/
Copy pathwezterm.lua
File metadata and controls
140 lines (126 loc) · 2.87 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
local wezterm = require("wezterm")
local config = wezterm.config_builder()
config.window_background_opacity = 1.0
config.quit_when_all_windows_are_closed = false
config.window_decorations = "RESIZE"
config.initial_cols = 90
config.initial_rows = 48
config.font = wezterm.font("Iosevka Term", {
weight = "Regular",
stretch = "Expanded",
})
config.font_rules = {
-- Keep dim text at the same weight instead of swapping to a lighter face.
{
intensity = "Half",
font = config.font,
},
{
intensity = "Bold",
font = wezterm.font("Iosevka Term", {
weight = "Bold",
stretch = "Expanded",
}),
},
}
config.font_size = 17.0
config.line_height = 1.2
config.color_scheme = "GruvboxDark"
config.command_palette_font_size = 24.0
config.use_fancy_tab_bar = true
config.tab_bar_at_bottom = false
config.show_new_tab_button_in_tab_bar = false
config.show_close_tab_button_in_tabs = false
config.show_tab_index_in_tab_bar = false
-- Pin exact Gruvbox hex values instead of trusting the bundled scheme's
-- fidelity (WezTerm's "GruvboxDark" scheme is sourced from a community
-- repo, not the original gruvbox palette, and can drift from it).
config.colors = {
background = "#282828",
foreground = "#ebdbb2",
cursor_bg = "#ebdbb2",
cursor_border = "#ebdbb2",
cursor_fg = "#282828",
selection_bg = "#665c54",
selection_fg = "#ebdbb2",
ansi = {
"#282828",
"#cc241d",
"#98971a",
"#d79921",
"#458588",
"#b16286",
"#689d6a",
"#a89984",
},
brights = {
"#928374",
"#fb4934",
"#b8bb26",
"#fabd2f",
"#83a598",
"#d3869b",
"#8ec07c",
"#ebdbb2",
},
tab_bar = {
background = "#3c3836",
inactive_tab_edge = "#928374",
active_tab = {
bg_color = "#282828",
fg_color = "#ebdbb2",
},
inactive_tab = {
bg_color = "#3c3836",
fg_color = "#928374",
},
inactive_tab_hover = {
bg_color = "#504945",
fg_color = "#b8bb26",
},
new_tab = {
bg_color = "#3c3836",
fg_color = "#ebdbb2",
},
new_tab_hover = {
bg_color = "#3c3836",
fg_color = "#b8bb26",
},
},
}
config.window_padding = {
left = 16,
right = 16,
top = 12,
bottom = 12,
}
config.window_frame = {
font = wezterm.font({
family = "Iosevka Term",
weight = "Medium",
}),
font_size = 12.0,
active_titlebar_bg = "#3c3836",
inactive_titlebar_bg = "#3c3836",
}
wezterm.on("update-right-status", function(window)
window:set_left_status("")
window:set_right_status("")
end)
-- Fall back to the pane title or running process name so tabs never go
-- blank when a program sets an empty OSC title.
wezterm.on("format-tab-title", function(tab)
local title = tab.tab_title
if title == nil or title == "" then
title = tab.active_pane.title
end
if title == nil or title == "" then
local proc = tab.active_pane.foreground_process_name or ""
title = proc:gsub("(.*[/\\])(.*)", "%2")
if title == "" then
title = "shell"
end
end
return " " .. title .. " "
end)
return config