Created
April 8, 2026 12:51
-
-
Save anhkind/ca77ad5ee4715fa360a0122145f3bffc to your computer and use it in GitHub Desktop.
Wezterm config for iTerm hotkey style
This file contains hidden or 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
| -- Pull in the wezterm API | |
| local wezterm = require 'wezterm' | |
| -- This will hold the configuration. | |
| local config = wezterm.config_builder() | |
| -- This is where you actually apply your config choices. | |
| -- For example, changing the initial geometry for new windows: | |
| config.initial_cols = 120 | |
| config.initial_rows = 28 | |
| -- or, changing the font size and color scheme. | |
| config.font_size = 10 | |
| config.color_scheme = 'AdventureTime' | |
| -- disable prompting on exit | |
| config.window_close_confirmation = 'NeverPrompt' | |
| local act = wezterm.action | |
| config.keys = { | |
| -- Split panes (iTerm style) | |
| { mods = 'CTRL', key = 'd', action = act.SplitHorizontal { domain = 'CurrentPaneDomain' } }, | |
| { mods = 'CTRL|SHIFT', key = 'd', action = act.SplitVertical { domain = 'CurrentPaneDomain' } }, | |
| -- Tab navigation | |
| { mods = 'CTRL', key = 't', action = act.SpawnTab 'CurrentPaneDomain' }, | |
| { mods = 'CTRL', key = 'w', action = act.CloseCurrentPane { confirm = false } }, | |
| { mods = 'CTRL', key = 'LeftArrow', action = act.ActivateTabRelative(-1) }, | |
| { mods = 'CTRL', key = 'RightArrow', action = act.ActivateTabRelative(1) }, | |
| -- Pane navigation | |
| { mods = 'CTRL', key = '[', action = act.ActivatePaneDirection 'Prev' }, | |
| { mods = 'CTRL', key = ']', action = act.ActivatePaneDirection 'Next' }, | |
| -- Font size | |
| { mods = 'CTRL', key = '=', action = act.IncreaseFontSize }, | |
| { mods = 'CTRL', key = '-', action = act.DecreaseFontSize }, | |
| } | |
| -- Finally, return the configuration to wezterm: | |
| return config |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment