-
Notifications
You must be signed in to change notification settings - Fork 0
/
wezterm.lua
42 lines (39 loc) · 1.18 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
local wezterm = require("wezterm")
local act = wezterm.action
local mykeys = {}
for i = 1, 8 do
-- CTRL+ALT + number to move to that position
table.insert(mykeys, {
key = tostring(i),
mods = "CTRL|ALT",
action = wezterm.action.MoveTab(i - 1),
})
end
table.insert(mykeys, { key = "V", mods = "CTRL|SHIFT", action = wezterm.action({ PasteFrom = "Clipboard" }) })
local config = {
font = wezterm.font("DejaVuSansM Nerd Font", { weight = "Regular" }),
warn_about_missing_glyphs = false,
exit_behavior = "Close",
color_scheme = "Oceanic-Next",
keys = mykeys,
window_decorations = "TITLE | RESIZE",
scrollback_lines = 30000,
enable_scroll_bar = true,
hide_mouse_cursor_when_typing = false,
mouse_bindings = {
-- Change the default click behavior so that it only selects
-- text and doesn't open hyperlinks
{
event = { Up = { streak = 1, button = "Left" } },
mods = "NONE",
action = act.CompleteSelection("ClipboardAndPrimarySelection"),
},
-- and make CTRL-Click open hyperlinks
{
event = { Up = { streak = 1, button = "Left" } },
mods = "CTRL",
action = act.OpenLinkAtMouseCursor,
},
},
}
return config