Last active
November 24, 2023 11:59
-
-
Save ericdouglas/227498193560a030a1c084544f1c22f3 to your computer and use it in GitHub Desktop.
wezterm config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local wezterm = require 'wezterm' | |
local act = wezterm.action | |
local config = {} | |
if wezterm.config_builder then | |
config = wezterm.config_builder() | |
end | |
-- configs | |
-- config.font = wezterm.font 'Monaco' | |
-- config.color_scheme = 'catppuccin-mocha' | |
config.font_size = 16.0 | |
config.use_fancy_tab_bar = false | |
config.window_background_opacity = 0.8 | |
config.inactive_pane_hsb = { | |
saturation = 0.3, | |
brightness = 0.3, | |
} | |
-- 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