-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.wezterm.lua
More file actions
204 lines (188 loc) · 4.06 KB
/
.wezterm.lua
File metadata and controls
204 lines (188 loc) · 4.06 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
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
local wezterm = require("wezterm")
local act = wezterm.action
local config = wezterm.config_builder()
-- local mux = wezterm.mux
-- START TERMINAL MAXIMIZED
-- wezterm.on("gui-startup", function()
-- local tab, pane, window = mux.spawn_window({})
-- window:gui_window():maximize()
-- end)
config.default_prog = { "pwsh.exe", "-NoLogo" }
-- LAUNCH MENU CONFIGURATION
config.launch_menu = {
{
label = "WSL: Debian (Zsh)",
args = { "wsl.exe", "-d", "Debian" },
},
{
label = "PowerShell",
args = { "pwsh.exe", "-NoLogo" },
},
}
config.wsl_domains = {
{
name = "WSL:Debian",
distribution = "Debian",
},
}
-- This man here causes WSL to be the default program, regardless.
-- config.default_domain = "WSL:Debian"
-- LAUNCH SIZE (commented out since I use Glazewm)
config.initial_cols = 120
config.initial_rows = 30
config.front_end = "OpenGL"
config.term = "xterm-256color"
config.max_fps = 144
config.prefer_egl = true
config.animation_fps = 1
config.color_scheme = "iceberg-dark"
config.window_background_opacity = 0.7
config.win32_system_backdrop = "Acrylic"
config.font = wezterm.font("Monaspace Neon NF")
config.font_size = 11
config.line_height = 1
config.default_cursor_style = "BlinkingBlock"
config.cursor_blink_rate = 0
config.use_dead_keys = false
config.scrollback_lines = 3000
config.automatically_reload_config = true
config.enable_scroll_bar = true
config.enable_tab_bar = false
config.tab_bar_at_bottom = false
config.use_fancy_tab_bar = false
config.tab_max_width = 25
config.show_tab_index_in_tab_bar = false
config.switch_to_last_active_tab_when_closing_tab = true
config.audible_bell = "Disabled"
-- config.window_decorations = "TITLE | RESIZE"
config.window_close_confirmation = "NeverPrompt"
-- function tab_title(tab_info)
-- local title = tab_info.tab_title
-- if title and #title > 0 then
-- return title
-- end
-- return tab_info.active_pane.title
-- end
--
-- wezterm.on("format-tab-title", function(tab, tabs, panes, config, hover, max_width)
-- local title = tab_title(tab)
-- if tab.is_active then
-- return {
-- { Background = { Color = "#c9efe9" } },
-- { Foreground = { Color = "#141414" } },
-- { Text = " " .. title .. " " },
-- }
-- end
-- if tab.is_last_active then
-- return {
-- { Background = { Color = "green" } },
-- { Text = " " .. title .. "*" },
-- }
-- end
-- return title
-- end)
-- KEYBINDS
config.leader = {
key = "s",
mods = "CTRL",
timeout_milliseconds = 2000,
}
config.keys = {
-- VI MODE
{
key = "[",
mods = "LEADER",
action = act.ActivateCopyMode,
},
-- PANES AND TABS
{
key = "=",
mods = "LEADER",
action = act.SplitPane({
direction = "Right",
size = { Percent = 50 },
}),
},
{
key = "-",
mods = "LEADER",
action = act.SplitPane({
direction = "Down",
size = { Percent = 50 },
}),
},
{
key = "h",
mods = "CTRL|ALT",
action = act.ActivatePaneDirection("Left"),
},
{
key = "j",
mods = "CTRL|ALT",
action = act.ActivatePaneDirection("Down"),
},
{
key = "k",
mods = "CTRL|ALT",
action = act.ActivatePaneDirection("Up"),
},
{
key = "l",
mods = "CTRL|ALT",
action = act.ActivatePaneDirection("Right"),
},
{
key = "h",
mods = "CTRL|SHIFT",
action = act.AdjustPaneSize({ "Left", 5 }),
},
{
key = "j",
mods = "CTRL|SHIFT",
action = act.AdjustPaneSize({ "Down", 5 }),
},
{
key = "k",
mods = "CTRL|SHIFT",
action = act.AdjustPaneSize({ "Up", 5 }),
},
{
key = "l",
mods = "CTRL|SHIFT",
action = act.AdjustPaneSize({ "Right", 5 }),
},
{
key = "\\",
mods = "LEADER",
action = act.SpawnTab("CurrentPaneDomain"),
},
{
key = "p",
mods = "LEADER",
action = act.ActivateTabRelative(-1),
},
{
key = "n",
mods = "LEADER",
action = act.ActivateTabRelative(1),
},
{
key = "w",
mods = "LEADER",
action = act.CloseCurrentTab({ confirm = false }),
},
{
key = "c",
mods = "LEADER",
action = act.CloseCurrentPane({ confirm = false }),
},
}
-- CYCLE TABS
-- for i = 1, 6 do
-- table.insert(config.keys, {
-- key = tostring(i),
-- mods = "LEADER",
-- action = act.ActivateTab(i - 1),
-- })
-- end
return config