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