Update wezterm.lua
This commit is contained in:
parent
d549bace48
commit
ddff8cd7c7
158
wezterm.lua
158
wezterm.lua
@ -1,79 +1,79 @@
|
|||||||
local wezterm = require("wezterm")
|
local wezterm = require("wezterm")
|
||||||
|
|
||||||
local default_prog
|
local config = {
|
||||||
if wezterm.target_triple == "x86_64-pc-windows-msvc" then
|
default_prog = default_prog,
|
||||||
default_prog = { "C:\\Program Files\\PowerShell\\7\\pwsh.exe" }
|
|
||||||
else
|
font = wezterm.font_with_fallback({
|
||||||
default_prog = { "alacritty" }
|
"Fira Code",
|
||||||
end
|
"Roboto",
|
||||||
|
}),
|
||||||
return {
|
font_size = 14,
|
||||||
default_prog = default_prog,
|
|
||||||
|
initial_cols = 160,
|
||||||
font = wezterm.font_with_fallback({
|
initial_rows = 30,
|
||||||
"Fira Code",
|
|
||||||
}),
|
color_scheme = "Ayu Dark (Gogh)",
|
||||||
font_size = 14,
|
background = {
|
||||||
|
{ source = { Color = "#000000" }, opacity = 1.0, height = "100%", width = "100%" },
|
||||||
initial_cols = 160,
|
{
|
||||||
initial_rows = 30,
|
source = {
|
||||||
|
File = wezterm.home_dir .. "/Pictures/ferris.png",
|
||||||
color_scheme = "Ayu Dark (Gogh)",
|
},
|
||||||
background = {
|
repeat_x = "NoRepeat",
|
||||||
{ source = { Color = "#000000" }, opacity = 1.0, height = "100%", width = "100%" },
|
repeat_y = "NoRepeat",
|
||||||
{
|
height = "400",
|
||||||
source = {
|
width = "400",
|
||||||
File = wezterm.home_dir .. "/Pictures/ferris.png",
|
opacity = 0.3,
|
||||||
},
|
|
||||||
repeat_x = "NoRepeat",
|
horizontal_align = "Right",
|
||||||
repeat_y = "NoRepeat",
|
vertical_align = "Bottom",
|
||||||
height = "400",
|
},
|
||||||
width = "400",
|
},
|
||||||
opacity = 0.3,
|
enable_tab_bar = true,
|
||||||
|
hide_tab_bar_if_only_one_tab = true,
|
||||||
horizontal_align = "Right",
|
|
||||||
vertical_align = "Bottom",
|
scrollback_lines = 10000,
|
||||||
},
|
|
||||||
},
|
disable_default_key_bindings = false,
|
||||||
enable_tab_bar = true,
|
use_dead_keys = false,
|
||||||
hide_tab_bar_if_only_one_tab = true,
|
|
||||||
|
window_padding = {
|
||||||
scrollback_lines = 10000,
|
left = 4,
|
||||||
|
right = 4,
|
||||||
disable_default_key_bindings = false,
|
top = 2,
|
||||||
use_dead_keys = false,
|
bottom = 2,
|
||||||
|
},
|
||||||
window_padding = {
|
|
||||||
left = 4,
|
front_end = "OpenGL",
|
||||||
right = 4,
|
adjust_window_size_when_changing_font_size = false,
|
||||||
top = 2,
|
keys = {
|
||||||
bottom = 2,
|
{ key = "1", mods = "ALT", action = wezterm.action.ActivateTab(0) },
|
||||||
},
|
{ key = "2", mods = "ALT", action = wezterm.action.ActivateTab(1) },
|
||||||
|
{ key = "3", mods = "ALT", action = wezterm.action.ActivateTab(2) },
|
||||||
front_end = "OpenGL",
|
|
||||||
adjust_window_size_when_changing_font_size = false,
|
{ key = "h", mods = "CTRL", action = wezterm.action.SplitHorizontal({ domain = "CurrentPaneDomain" }) },
|
||||||
keys = {
|
{ key = "h", mods = "CTRL|ALT", action = wezterm.action.SplitVertical({ domain = "CurrentPaneDomain" }) },
|
||||||
{ key = "1", mods = "ALT", action = wezterm.action.ActivateTab(0) },
|
|
||||||
{ key = "2", mods = "ALT", action = wezterm.action.ActivateTab(1) },
|
{ key = "h", mods = "ALT", action = wezterm.action.ActivatePaneDirection("Left") },
|
||||||
{ key = "3", mods = "ALT", action = wezterm.action.ActivateTab(2) },
|
{ key = "l", mods = "ALT", action = wezterm.action.ActivatePaneDirection("Right") },
|
||||||
|
{ key = "k", mods = "ALT", action = wezterm.action.ActivatePaneDirection("Up") },
|
||||||
{ key = "h", mods = "CTRL", action = wezterm.action.SplitHorizontal({ domain = "CurrentPaneDomain" }) },
|
{ key = "j", mods = "ALT", action = wezterm.action.ActivatePaneDirection("Down") },
|
||||||
{ key = "h", mods = "CTRL|ALT", action = wezterm.action.SplitVertical({ domain = "CurrentPaneDomain" }) },
|
{ key = "w", mods = "CTRL", action = wezterm.action.CloseCurrentPane({ confirm = true }) },
|
||||||
|
{ key = "q", mods = "ALT", action = wezterm.action.CloseCurrentTab({ confirm = true }) },
|
||||||
{ key = "h", mods = "ALT", action = wezterm.action.ActivatePaneDirection("Left") },
|
|
||||||
{ key = "l", mods = "ALT", action = wezterm.action.ActivatePaneDirection("Right") },
|
{ key = "UpArrow", mods = "ALT", action = wezterm.action.AdjustPaneSize({ "Up", 1 }) },
|
||||||
{ key = "k", mods = "ALT", action = wezterm.action.ActivatePaneDirection("Up") },
|
{ key = "DownArrow", mods = "ALT", action = wezterm.action.AdjustPaneSize({ "Down", 1 }) },
|
||||||
{ key = "j", mods = "ALT", action = wezterm.action.ActivatePaneDirection("Down") },
|
{ key = "LeftArrow", mods = "ALT", action = wezterm.action.AdjustPaneSize({ "Left", 1 }) },
|
||||||
{ key = "w", mods = "CTRL", action = wezterm.action.CloseCurrentPane({ confirm = true }) },
|
{ key = "RightArrow", mods = "ALT", action = wezterm.action.AdjustPaneSize({ "Right", 1 }) },
|
||||||
{ key = "q", mods = "ALT", action = wezterm.action.CloseCurrentTab({ confirm = true }) },
|
|
||||||
|
{ key = "f", mods = "CTRL", action = wezterm.action.Search({ CaseSensitiveString = "" }) },
|
||||||
{ key = "UpArrow", mods = "ALT", action = wezterm.action.AdjustPaneSize({ "Up", 1 }) },
|
{ key = "p", mods = "CTRL", action = wezterm.action.ActivateCommandPalette },
|
||||||
{ key = "DownArrow", mods = "ALT", action = wezterm.action.AdjustPaneSize({ "Down", 1 }) },
|
{ key = "Enter", mods = "SHIFT", action = wezterm.action.ActivateCopyMode },
|
||||||
{ key = "LeftArrow", mods = "ALT", action = wezterm.action.AdjustPaneSize({ "Left", 1 }) },
|
},
|
||||||
{ key = "RightArrow", mods = "ALT", action = wezterm.action.AdjustPaneSize({ "Right", 1 }) },
|
}
|
||||||
|
|
||||||
{ key = "f", mods = "CTRL", action = wezterm.action.Search({ CaseSensitiveString = "" }) },
|
if wezterm.target_triple == "x86_64-pc-windows-msvc" then
|
||||||
{ key = "p", mods = "CTRL", action = wezterm.action.ActivateCommandPalette },
|
config.default_prog = { "C:\\Program Files\\PowerShell\\7\\pwsh.exe" }
|
||||||
{ key = "Enter", mods = "SHIFT", action = wezterm.action.ActivateCopyMode },
|
end
|
||||||
},
|
|
||||||
}
|
return config
|
||||||
|
Loading…
x
Reference in New Issue
Block a user