diff --git a/dotfiles/wezterm/.wezterm.lua b/dotfiles/wezterm/.wezterm.lua new file mode 100644 index 0000000..f751356 --- /dev/null +++ b/dotfiles/wezterm/.wezterm.lua @@ -0,0 +1,35 @@ +local wezterm = require("wezterm") +local config = wezterm.config_builder() +local act = wezterm.action + +config.color_scheme = "catppuccin-latte" + +config.font = wezterm.font("Iosevka", { weight = "Medium" }) +config.font_size = 14.5 + +config.enable_tab_bar = true + +config.keys = { + -- https://github.com/wez/wezterm/issues/522 + { + key = "E", + mods = "CTRL|SHIFT", + action = act.PromptInputLine({ + description = "Enter new name for tab", + action = wezterm.action_callback(function(window, pane, line) + if line then + window:active_tab():set_title(line) + end + end), + }), + }, + + { key = "F9", action = wezterm.action.ShowTabNavigator }, + + { key = "r", mods = "ALT", action = act.ActivateWindowRelative(1) }, + { key = "e", mods = "ALT", action = act.ActivateWindowRelative(-1) }, + { key = "r", mods = "CMD", action = act.ActivateWindowRelative(1) }, + { key = "e", mods = "CMD", action = act.ActivateWindowRelative(-1) }, +} + +return config