-
-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathHomeSetup-WezTerm.lua
More file actions
104 lines (88 loc) · 2.76 KB
/
HomeSetup-WezTerm.lua
File metadata and controls
104 lines (88 loc) · 2.76 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
local wezterm = require 'wezterm'
local dimmer = { brightness = 0.05 }
local brew_prefix = "/opt/homebrew/bin/brew"
local mux = wezterm.mux
wezterm.on("gui-startup", function(cmd)
local tab, pane, window = mux.spawn_window(cmd or {})
window:gui_window():maximize()
end)
local config = {
-- What to set the TERM variable to
term = "xterm-256color",
default_prog = { "sh", "-c", "exec $(" .. brew_prefix .. " --prefix bash)/bin/bash -l" },
exit_behavior = 'Close',
window_close_confirmation = 'AlwaysPrompt',
-- Don't ask the macOS IME/text services to compose input
use_dead_keys = true,
use_ime = false,
bold_brightens_ansi_colors = "BrightAndBold",
-- Window padding for macOS aesthetics
window_padding = {
left = 10,
right = 10,
top = 10,
bottom = 10,
},
-- Window decorations
window_decorations = "TITLE | RESIZE",
-- Font rendering features
harfbuzz_features = { "calt=1", "clig=1", "liga=1" },
-- Scroll
scrollback_lines = 5000,
enable_scroll_bar = true,
min_scroll_bar_height = '3cell',
-- Font settings
font_size = 16.0,
font = wezterm.font_with_fallback({
"DroidSansMono Nerd Font",
"MesloLGS Nerd Font Mono",
}),
font_rules = {
{
italic = true,
font = wezterm.font("DroidSansMono Nerd Font", { italic = true }),
font = wezterm.font("MesloLGS Nerd Font Mono", { italic = true }),
}
},
-- Background settings
background = {
{
source = {
File = os.getenv('HOME') .. "/HomeSetup/assets/images/hs-cover.png",
},
width = '100%',
height = '100%',
repeat_x = 'NoRepeat',
repeat_y = 'NoRepeat',
attachment = "Fixed",
hsb = dimmer,
opacity = 0.9,
},
},
-- Appearance settings
colors = {
scrollbar_thumb = '#75e9be',
},
macos_window_background_blur = 10,
use_fancy_tab_bar = true,
adjust_window_size_when_changing_font_size = false,
hide_tab_bar_if_only_one_tab = true,
-- Cursor settings
default_cursor_style = "BlinkingUnderline",
cursor_blink_rate = 500,
cursor_thickness = 2.0,
line_height = 1.2,
-- Keyboard shortcuts
-- Modifiers: CTRL|SHIFT|CMD|ALT|OPT|META
keys = {
-- Existing shortcuts
{ key = "t", mods = "CMD", action = wezterm.action.SpawnTab("CurrentPaneDomain") },
{ key = "w", mods = "CMD", action = wezterm.action.CloseCurrentTab({ confirm = true }) },
{ key = "k", mods = "CMD", action = wezterm.action { ClearScrollback = "ScrollbackAndViewport" } },
{ key = "1", mods = "CMD", action = wezterm.action.ActivateTab(0) },
{ key = "2", mods = "CMD", action = wezterm.action.ActivateTab(1) },
{ key = "3", mods = "CMD", action = wezterm.action.ActivateTab(2) },
{ key = "4", mods = "CMD", action = wezterm.action.ActivateTab(3) },
},
}
return config