Skip to content

Instantly share code, notes, and snippets.

@aphu
Created June 22, 2023 12:01
Show Gist options
  • Save aphu/1cceeff242ea3fc4f5b52b47ffd73005 to your computer and use it in GitHub Desktop.
Save aphu/1cceeff242ea3fc4f5b52b47ffd73005 to your computer and use it in GitHub Desktop.
wezterm
-- Pull in the wezterm API
local wezterm = require 'wezterm'
-- This table will hold the configuration.
local config = {}
-- In newer versions of wezterm, use the config_builder which will
-- help provide clearer error messages
if wezterm.config_builder then
config = wezterm.config_builder()
end
-- This is where you actually apply your config choices
-- For example, changing the color scheme:
config.color_scheme = 'MaterialDesignColors'
config.font = wezterm.font 'Hack'
config.font_size = 13
config.keys = {
{
key = 'd',
mods = 'SUPER',
action = wezterm.action.SplitHorizontal { domain = 'CurrentPaneDomain' }
},
{
key = 'd',
mods = 'SUPER|SHIFT',
action = wezterm.action.SplitVertical { domain = 'CurrentPaneDomain' }
},
{
key = 'LeftArrow',
mods = 'OPT',
action = wezterm.action { SendString="\x1bb" }
},
{
key = 'RightArrow',
mods = 'OPT',
action = wezterm.action { SendString="\x1bf" }
}
}
-- and 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