From 3e67dc244cb74b4252aa57aadc6aaf68efc1e81b Mon Sep 17 00:00:00 2001 From: Natercio Moniz Date: Thu, 29 May 2025 13:34:23 +0100 Subject: [PATCH] initial commit --- wezterm.lua | 83 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 83 insertions(+) create mode 100644 wezterm.lua diff --git a/wezterm.lua b/wezterm.lua new file mode 100644 index 0000000..e65185e --- /dev/null +++ b/wezterm.lua @@ -0,0 +1,83 @@ +local wezterm = require("wezterm") +local act = wezterm.action + +local config = wezterm.config_builder() + +config.initial_cols = 120 +config.initial_rows = 28 + +config.font_size = 14 +config.color_scheme = "Tokyo Night" + +config.font = wezterm.font("Fira Code") + +config.use_fancy_tab_bar = false +config.window_decorations = "RESIZE" +config.window_padding = { + left = 0, + right = 0, + top = 0, + bottom = 0, +} + +config.prefer_egl = true + +config.keys = { + + -- tabs -- + + { key = ",", mods = "ALT", action = act.ActivateTabRelative(-1) }, + { key = ".", mods = "ALT", action = act.ActivateTabRelative(1) }, + { key = "<", mods = "SHIFT|ALT", action = act.MoveTabRelative(-1) }, + { key = ">", mods = "SHIFT|ALT", action = act.MoveTabRelative(1) }, + + { key = "w", mods = "SHIFT|ALT", action = act.CloseCurrentTab({ confirm = false }) }, + + -- panes + + { key = "0", mods = "ALT", action = act.PaneSelect }, + { key = "k", mods = "ALT", action = act.ActivatePaneDirection("Up") }, + { key = "j", mods = "ALT", action = act.ActivatePaneDirection("Down") }, + { key = "h", mods = "ALT", action = act.ActivatePaneDirection("Left") }, + { key = "l", mods = "ALT", action = act.ActivatePaneDirection("Right") }, + + { + key = "h", + mods = "SHIFT|ALT", + action = act.SplitPane({ + direction = "Left", + size = { Percent = 50 }, + }), + }, + { + key = "l", + mods = "SHIFT|ALT", + action = act.SplitPane({ + direction = "Right", + size = { Percent = 50 }, + }), + }, + { + key = "j", + mods = "SHIFT|ALT", + action = act.SplitPane({ + direction = "Down", + size = { Percent = 50 }, + }), + }, + { + key = "k", + mods = "SHIFT|ALT", + action = act.SplitPane({ + direction = "Up", + size = { Percent = 50 }, + }), + }, + { + key = "w", + mods = "ALT", + action = act.CloseCurrentPane({ confirm = false }), + }, +} + +return config