-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwezterm.lua
62 lines (52 loc) · 1.41 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
local wezterm = require 'wezterm';
local os = os.getenv("OS")
local default_prog
if os ~= "LINUX" then
default_prog = { "ubuntu2204.exe" }
end
return {
-- Run wsl if on windows
default_prog = default_prog,
-- Set key bindings explicitly
disable_default_key_bindings = true,
keys = {
{ -- copy to clipboard
key = "c",
mods = "CTRL|SHIFT",
action = wezterm.action { CopyTo = "Clipboard" },
},
{ -- paste from clipboard
key = "v",
mods = "CTRL|SHIFT",
action = wezterm.action { PasteFrom = "Clipboard" },
},
{ -- zoom in
key = "=",
mods = "CTRL",
action = wezterm.action.IncreaseFontSize,
},
{ -- zoom out
key = "-",
mods = "CTRL",
action = wezterm.action.DecreaseFontSize,
},
},
-- Hide tab bar when there's only one tab
hide_tab_bar_if_only_one_tab = true,
-- Disable the bell
audible_bell = "Disabled",
-- Do not ask before closing a window
window_close_confirmation = "NeverPrompt",
-- Window padding
window_padding = {
left = 7,
right = 7,
top = 7,
bottom = 7,
},
-- Color scheme
color_scheme = 'Gruvbox dark, pale (base16)',
-- Font configuration
font = wezterm.font("JetBrains Mono NL"),
font_size = 13.0,
}