-
Notifications
You must be signed in to change notification settings - Fork 0
/
.wezterm.lua
58 lines (46 loc) · 1.21 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
local wezterm = require("wezterm")
local config = {
font = wezterm.font({
family = "MonacoLigaturized",
stretch = "Expanded",
weight = "Regular",
}),
font_size = 18.0,
color_scheme = "Github Dark",
enable_tab_bar = true,
hide_tab_bar_if_only_one_tab = true,
use_fancy_tab_bar = false,
tab_bar_at_bottom = true,
show_new_tab_button_in_tab_bar = false,
window_padding = {
top = 0,
bottom = 0,
left = 0,
right = 0,
},
window_background_opacity = 0.8,
macos_window_background_blur = 30,
underline_position = 0,
underline_thickness = 2,
window_close_confirmation = "NeverPrompt",
window_decorations = "RESIZE",
keys = {
{ key = "'", mods = "CTRL", action = wezterm.action.EmitEvent("toggle-tabbar") },
},
}
wezterm.on("gui-startup", function()
local tab, pane, window = wezterm.mux.spawn_window({})
window:gui_window():maximize()
end)
wezterm.on("toggle-tabbar", function(window, _)
local overrides = window:get_config_overrides() or {}
if overrides.enable_tab_bar == false then
wezterm.log_info("tab bar shown")
overrides.enable_tab_bar = true
else
wezterm.log_info("tab bar hidden")
overrides.enable_tab_bar = false
end
window:set_config_overrides(overrides)
end)
return config