Skip to content

Instantly share code, notes, and snippets.

@zbyju
Last active March 3, 2024 23:59
Show Gist options
  • Save zbyju/ea4ccea6e94a3425b4c61ecd20dbfae1 to your computer and use it in GitHub Desktop.
Save zbyju/ea4ccea6e94a3425b4c61ecd20dbfae1 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 = 'Catppuccin Mocha'
config.font = wezterm.font "MonaspiceNe NFM"
config.default_domain = 'WSL:Ubuntu'
local act = wezterm.action
config.disable_default_key_bindings = true
config.keys = {
{ key = 'v', mods = 'CTRL', action = act.PasteFrom 'Clipboard' },
{ key = 'v', mods = 'CTRL', action = act.PasteFrom 'PrimarySelection' },
}
config.window_padding = {
left = 2,
right = 0,
top = 3,
bottom = 3,
}
-- 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