-
Notifications
You must be signed in to change notification settings - Fork 0
/
.wezterm.lua
60 lines (54 loc) · 1.81 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
local wezterm = require("wezterm")
local act = wezterm.action
local function ends_with(str, ending)
return ending == "" or str:sub(-#ending) == ending
end
local function is_macos()
return ends_with(wezterm.target_triple, "-apple-darwin")
end
local function is_windows()
return ends_with(wezterm.target_triple, "-pc-windows-msvc")
end
local config = wezterm.config_builder()
config.disable_default_key_bindings = false
config.color_scheme = "Wez (Gogh)"
config.front_end = "WebGpu"
config.keys = {
{ key = "L", mods = "SHIFT|CTRL", action = act.ShowDebugOverlay },
{ key = "P", mods = "SHIFT|CTRL", action = act.ActivateCommandPalette },
{ key = "d", mods = "SHIFT|SUPER", action = act.SplitVertical({ domain = "CurrentPaneDomain" }) },
{ key = "d", mods = "SUPER", action = act.SplitHorizontal({ domain = "CurrentPaneDomain" }) },
{ key = "h", mods = "CTRL", action = act.ActivatePaneDirection("Left") },
{ key = "l", mods = "CTRL", action = act.ActivatePaneDirection("Right") },
{ key = "k", mods = "CTRL", action = act.ActivatePaneDirection("Up") },
{ key = "j", mods = "CTRL", action = act.ActivatePaneDirection("Down") },
}
config.inactive_pane_hsb = {
saturation = 0.9,
brightness = 0.35,
}
config.send_composed_key_when_left_alt_is_pressed = true
config.window_decorations = "INTEGRATED_BUTTONS|RESIZE"
if is_macos() then
config.initial_cols = 240
config.initial_rows = 86
elseif is_windows() then
config.initial_cols = 120
config.initial_rows = 40
config.launch_menu = {
{
label = "Git Bash",
args = { "C:\\Program Files\\Git\\bin\\bash.exe" },
},
{
label = "PowerShell",
args = { "powershell.exe", "-NoLogo" },
},
{
label = "Command Prompt",
args = { "cmd.exe" },
},
}
config.default_prog = config.launch_menu[1].args
end
return config