Skip to content

Instantly share code, notes, and snippets.

@ericdouglas
Last active April 3, 2026 22:08
Show Gist options
  • Select an option

  • Save ericdouglas/227498193560a030a1c084544f1c22f3 to your computer and use it in GitHub Desktop.

Select an option

Save ericdouglas/227498193560a030a1c084544f1c22f3 to your computer and use it in GitHub Desktop.
wezterm config
local wezterm = require("wezterm")
local act = wezterm.action
local config = {}
if wezterm.config_builder then
config = wezterm.config_builder()
end
-- configs
config.font_size = 16.0
config.use_fancy_tab_bar = false
config.window_background_opacity = 0.75
config.harfbuzz_features = { "calt=0", "clig=0", "liga=0" }
config.inactive_pane_hsb = {
saturation = 0.5,
brightness = 0.5,
}
config.window_padding = {
left = 0,
right = 0,
top = 0,
bottom = 0,
}
-- key bindings
config.keys = {
-- Pane keybindings
{ key = "\\", mods = "CTRL", action = wezterm.action.SplitHorizontal({ domain = "CurrentPaneDomain" }) },
{ key = "-", mods = "CTRL", action = wezterm.action.SplitVertical({ domain = "CurrentPaneDomain" }) },
{ key = "h", mods = "CTRL|SHIFT", action = act.ActivatePaneDirection("Left") },
{ key = "j", mods = "CTRL|SHIFT", action = act.ActivatePaneDirection("Down") },
{ key = "k", mods = "CTRL|SHIFT", action = act.ActivatePaneDirection("Up") },
{ key = "l", mods = "CTRL|SHIFT", action = act.ActivatePaneDirection("Right") },
{ key = "q", mods = "CTRL", action = act.CloseCurrentPane({ confirm = true }) },
{ key = "z", mods = "CTRL", action = act.TogglePaneZoomState },
{ key = "o", mods = "CTRL", action = act.RotatePanes("Clockwise") },
-- Tab keybindings
{ key = "t", mods = "CTRL", action = act.SpawnTab("CurrentPaneDomain") },
{ key = "[", mods = "CTRL", action = act.ActivateTabRelative(-1) },
{ key = "]", mods = "CTRL", action = act.ActivateTabRelative(1) },
{ key = "n", mods = "CTRL", action = act.ShowTabNavigator },
{
key = "e",
mods = "CTRL",
action = act.PromptInputLine({
description = wezterm.format({
{ Attribute = { Intensity = "Bold" } },
{ Foreground = { AnsiColor = "Fuchsia" } },
{ Text = "Renaming Tab Title...:" },
}),
action = wezterm.action_callback(function(window, pane, line)
if line then
window:active_tab():set_title(line)
end
end),
}),
},
}
return config
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment