Skip to content

Instantly share code, notes, and snippets.

@membrive
Created August 7, 2024 07:36
Show Gist options
  • Save membrive/88fb2226846f176f2214fec4c74894ff to your computer and use it in GitHub Desktop.
Save membrive/88fb2226846f176f2214fec4c74894ff to your computer and use it in GitHub Desktop.
My WezTerm config
local wezterm = require 'wezterm'
local config = wezterm.config_builder()
config.initial_rows = 26
config.initial_cols = 100
config.window_background_opacity = 0.80
config.macos_window_background_blur = 10
config.font = wezterm.font {
family = 'Hack',
}
config.line_height = 1.05
config.inactive_pane_hsb = {
saturation = 0.8,
brightness = 0.7,
}
config.scrollback_lines = 4000
config.mouse_bindings = {
-- Right click paste
{
event = {Down = {streak = 1, button = "Right"}},
mods = "NONE",
action = wezterm.action {PasteFrom = "Clipboard"}
},
-- Change the default click behavior so that it only selects
-- text and doesn't open hyperlinks
{
event = {Up = {streak = 1, button = "Left"}},
mods = "NONE",
action = wezterm.action {CompleteSelection = "PrimarySelection"}
},
-- and make CTRL-Click open hyperlinks
{
event = {Up = {streak = 1, button = "Left"}},
mods = "CTRL",
action = "OpenLinkAtMouseCursor"
}
}
return config
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment