feat: add support for multiple clipboards in wezterm

This commit is contained in:
Devin Haska 2025-06-21 14:06:37 -07:00
parent 1bc8e89462
commit e339973066
Signed by: wonderfulfrog
SSH key fingerprint: SHA256:ejOGyH9064rJiikox4ykOHLeuUg1f9l8wmJxs+MzNw0

View file

@ -1,24 +1,33 @@
local wezterm = require 'wezterm'
local wezterm = require("wezterm")
local config = wezterm.config_builder()
local act = wezterm.action
config.audible_bell = 'Disabled'
config.audible_bell = "Disabled"
config.color_scheme = 'tokyonight_storm'
config.color_scheme = "tokyonight_storm"
config.font = wezterm.font('OperatorMono Nerd Font', { weight = 400 })
config.font = wezterm.font("OperatorMono Nerd Font", { weight = 400 })
config.font_size = 20
config.font_rules = {
{
intensity = 'Bold',
intensity = "Bold",
italic = true,
font = wezterm.font('OperatorMono Nerd Font', { weight = 600, style = 'Italic' })
font = wezterm.font("OperatorMono Nerd Font", { weight = 600, style = "Italic" }),
},
{
intensity = 'Bold',
intensity = "Bold",
italic = false,
font = wezterm.font('OperatorMono Nerd Font', { weight = 600 })
font = wezterm.font("OperatorMono Nerd Font", { weight = 600 }),
},
}
config.keys = {
-- paste from the clipboard
{ key = "V", mods = "CTRL", action = act.PasteFrom("Clipboard") },
-- paste from the primary selection
{ key = "V", mods = "CTRL", action = act.PasteFrom("PrimarySelection") },
}
config.hide_tab_bar_if_only_one_tab = true
@ -37,5 +46,4 @@ config.window_padding = {
-- OS Specific
config.macos_window_background_blur = 32
return config