remove wezterm
This commit is contained in:
parent
14585bca9e
commit
aa8ce447c1
@ -1,106 +0,0 @@
|
||||
-- wezterm.lua configuration file
|
||||
local wezterm = require 'wezterm'
|
||||
|
||||
-- This table will hold the configuration.
|
||||
local config = {}
|
||||
|
||||
-- In newer versions of wezterm, use the config_builder which will
|
||||
-- help provide clearer error messages
|
||||
if wezterm.config_builder then
|
||||
config = wezterm.config_builder()
|
||||
end
|
||||
|
||||
-- Environment variables
|
||||
config.term="xterm-256color"
|
||||
config.set_environment_variables = {
|
||||
TERM = "xterm-256color",
|
||||
}
|
||||
|
||||
-- Font configuration
|
||||
config.font = wezterm.font('JetBrainsMono Nerd Font', {weight = 'Bold'})
|
||||
-- config.freetype_render_target = "HorizontalLcd"
|
||||
-- config.freetype_load_flags = 'NO_HINTING'
|
||||
-- config.freetype_load_target = "Light"
|
||||
config.bold_brightens_ansi_colors = false
|
||||
|
||||
local act = wezterm.action
|
||||
|
||||
config.font_size = 14
|
||||
-- Alacritty's offset translates to cell_width and line_height in wezterm
|
||||
-- Since your offset is 0, we're keeping default values
|
||||
|
||||
-- Window configuration
|
||||
config.window_padding = {
|
||||
left = 4,
|
||||
right = 4,
|
||||
top = 0,
|
||||
bottom = 0,
|
||||
}
|
||||
-- config.window_decorations = "RESIZE|TITLE|MACOS_USE_BACKGROUND_COLOR_AS_TITLEBAR_COLOR|MACOS_FORCE_ENABLE_SHADOW" -- Similar to decorations_theme_variant = "Dark"
|
||||
config.window_decorations = "TITLE|RESIZE"
|
||||
config.use_resize_increments = false
|
||||
-- Wezterm doesn't have direct equivalents for dynamic_padding and resize_increments
|
||||
-- but we can set related options
|
||||
|
||||
-- Keyboard bindings
|
||||
config.keys = {
|
||||
{key="LeftArrow", mods="SUPER|SHIFT", action=wezterm.action{MoveTabRelative=-1}},
|
||||
{key="RightArrow", mods="SUPER|SHIFT", action=wezterm.action{MoveTabRelative=1}},
|
||||
|
||||
-- Create new window
|
||||
{
|
||||
key = 'n',
|
||||
mods = 'CMD',
|
||||
action = wezterm.action.SpawnWindow,
|
||||
},
|
||||
-- Jump back one word (Alt+Left)
|
||||
{
|
||||
key = 'LeftArrow',
|
||||
mods = 'ALT',
|
||||
action = wezterm.action.SendString('\x1bb'),
|
||||
},
|
||||
-- Jump forward one word (Alt+Right)
|
||||
{
|
||||
key = 'RightArrow',
|
||||
mods = 'ALT',
|
||||
action = wezterm.action.SendString('\x1bf'),
|
||||
},
|
||||
-- Move to start of line (Cmd+Left)
|
||||
{
|
||||
key = 'LeftArrow',
|
||||
mods = 'CMD',
|
||||
action = wezterm.action.SendString('\x01'),
|
||||
},
|
||||
-- Move to end of line (Cmd+Right)
|
||||
{
|
||||
key = 'RightArrow',
|
||||
mods = 'CMD',
|
||||
action = wezterm.action.SendString('\x05'),
|
||||
},
|
||||
-- Delete backwards word (Alt+Backspace)
|
||||
{
|
||||
key = 'Backspace',
|
||||
mods = 'ALT',
|
||||
action = wezterm.action.SendString('\x1b\x7f'),
|
||||
},
|
||||
-- Delete backwards line (Cmd+Backspace)
|
||||
{
|
||||
key = 'Backspace',
|
||||
mods = 'CMD',
|
||||
action = wezterm.action.SendString('\x15'),
|
||||
},
|
||||
-- Delete forwards word (Alt+Delete)
|
||||
{
|
||||
key = 'Delete',
|
||||
mods = 'ALT',
|
||||
action = wezterm.action.SendString('\x1bd'),
|
||||
},
|
||||
-- Delete forwards line (Cmd+Delete)
|
||||
{
|
||||
key = 'Delete',
|
||||
mods = 'CMD',
|
||||
action = wezterm.action.SendString('\x0b'),
|
||||
},
|
||||
}
|
||||
|
||||
return config
|
||||
Loading…
Reference in New Issue
Block a user