local wezterm = require('wezterm') local config = wezterm.config_builder() config.term="xterm-256color" config.color_scheme = "Catppuccin Frappe" config.font = wezterm.font('FiraCode Nerd Font') -- config.window_decorations = "INTEGRATED_BUTTONS | RESIZE" config.font_size = 14.0 config.use_resize_increments = true config.window_padding = { left = 4, right = 4, top = 4, bottom = 0, } config.mouse_bindings = { { event = { Drag = { streak = 1, button = 'Left' } }, mods = 'CMD', action = wezterm.action.StartWindowDrag, }, { event = { Drag = { streak = 1, button = 'Left' } }, mods = 'CTRL|SHIFT', action = wezterm.action.StartWindowDrag, }, } local act = wezterm.action config.keys = { { key = 'w', mods = 'CMD', action = wezterm.action.CloseCurrentTab { confirm = false } }, { key = 'LeftArrow', mods = 'CMD', action = wezterm.action { SendString = '\x1b0H' } }, { key = 'RightArrow', mods = 'CMD', action = wezterm.action { SendString = '\x1b0F' } }, { key = 'LeftArrow', mods = 'OPT', action = act.SendKey { key = 'b', mods = 'ALT' } }, { key = 'RightArrow', mods = 'OPT', action = act.SendKey { key = 'f', mods = 'ALT' } } ---- Make Option-Left equivalent to Alt-b which many line editors interpret as backward-word --{ -- key="LeftArrow", -- mods="OPT", -- action=wezterm.action{SendString="\x1bb"} --}, ---- Make Option-Right equivalent to Alt-f; forward-word --{ -- key="RightArrow", -- mods="OPT", -- action=wezterm.action{SendString="\x1bf"} --} } return config