Created
August 7, 2024 07:36
-
-
Save membrive/88fb2226846f176f2214fec4c74894ff to your computer and use it in GitHub Desktop.
My 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 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