-
Notifications
You must be signed in to change notification settings - Fork 0
/
wezterm.lua
64 lines (57 loc) · 1.68 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
---@type Wezterm
local wezterm = require("wezterm")
local mappings = require("wz-mappings")
---@type Config
local cf = wezterm.config_builder()
local config = {
color_scheme = "Catppuccin Mocha",
font = wezterm.font_with_fallback({ "JetBrainsMono NF", "Hack Nerd Font" }),
font_size = 16,
line_height = 1.1,
window_background_opacity = 0.9,
win32_system_backdrop = "Acrylic",
window_padding = {
left = "20px",
},
keys = mappings,
disable_default_key_bindings = true,
default_domain = "WSL:Ubuntu",
window_decorations = "INTEGRATED_BUTTONS|RESIZE",
use_fancy_tab_bar = false,
hide_tab_bar_if_only_one_tab = false,
launch_menu = {},
min_scroll_bar_height = "0.5cell",
scrollback_lines = 50000,
-- enable_tab_bar = false,
-- enable_scroll_bar = true,
}
for k, v in pairs(config) do
cf[k] = v
end
wezterm.on("window-focus-changed", function(window)
local overrides = window:get_config_overrides() or {}
if window:is_focused() then
overrides.colors.cursor_bg = nil
window:set_config_overrides(overrides)
else
overrides.colors.cursor_border = "#222222"
overrides.colors.cursor_bg = "#222222"
overrides.colors.cursor_fg = "#222222"
window:set_config_overrides(overrides)
end
end)
if wezterm.target_triple == "x86_64-pc-windows-msvc" then
-- Add pwsh entry
table.insert(config.launch_menu, {
label = "New Tab (domain: `Windows`) - PowerShell",
args = { "pwsh.exe", "-NoLogo" },
})
end
if wezterm.target_triple == "x86_64-pc-windows-msvc" then
-- Add pwsh entry
table.insert(config.launch_menu, {
label = "New Tab (domain: `Windows`) - PowerShell",
args = { "pwsh.exe", "-NoLogo" },
})
end
return config