-
Notifications
You must be signed in to change notification settings - Fork 0
/
dot_wezterm.lua
46 lines (38 loc) · 2.04 KB
/
dot_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
local wezterm = require("wezterm")
local mux = wezterm.mux
wezterm.on("gui-startup", function(cmd)
local tab, pane, window = mux.spawn_window(cmd or {})
window:gui_window():maximize()
end)
return {
-- colorscheme
color_scheme = "nord",
-- font configuration
-- font = wezterm.font("AnonymicePro Nerd Font", { weight = "Regular", stretch = "Expanded", style = "Normal" }),
font_size = 14,
use_ime = true,
audible_bell = "Disabled",
disable_default_key_bindings = true,
keys = {
-- line word navigation using "alt"+left/right
{ key = "LeftArrow", mods = "OPT", action = wezterm.action({ SendString = "\x1bb" }) },
{ key = "RightArrow", mods = "OPT", action = wezterm.action({ SendString = "\x1bf" }) },
-- tab navigation
{ key = "t", mods = "SUPER", action = wezterm.action.SpawnTab("CurrentPaneDomain") },
{ key = "Tab", mods = "CTRL", action = wezterm.action.ActivateTabRelative(1) },
{ key = "Tab", mods = "SHIFT|CTRL", action = wezterm.action.ActivateTabRelative(-1) },
{ key = "Enter", mods = "ALT", action = wezterm.action.ToggleFullScreen },
-- pane navigation (bind on cltr+shift to avoid conflicts with common editing actions
{ key = "t", mods = "CTRL|SHIFT", action = wezterm.action.SplitHorizontal({ domain = "CurrentPaneDomain" }) },
{ key = "x", mods = "CTRL|SHIFT", action = wezterm.action.CloseCurrentPane({ confirm = true }) },
{ key = "w", mods = "CTRL|SHIFT", action = wezterm.action.ActivatePaneDirection("Next") },
-- "standard" app shortcuts based on cmd key
{ key = "-", mods = "SUPER", action = wezterm.action.DecreaseFontSize },
{ key = "+", mods = "SUPER", action = wezterm.action.IncreaseFontSize },
{ key = "q", mods = "SUPER", action = wezterm.action.QuitApplication },
{ key = "c", mods = "SUPER", action = wezterm.action.CopyTo("Clipboard") },
{ key = "v", mods = "SUPER", action = wezterm.action.PasteFrom("Clipboard") },
{ key = "L", mods = "SHIFT|CTRL", action = wezterm.action.ShowDebugOverlay },
{ key = "f", mods = "SUPER", action = wezterm.action.Search("CurrentSelectionOrEmptyString") },
},
}