feat: add support for multiple clipboards in wezterm
This commit is contained in:
parent
1bc8e89462
commit
e339973066
1 changed files with 27 additions and 19 deletions
|
@ -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',
|
||||
italic = true,
|
||||
font = wezterm.font('OperatorMono Nerd Font', { weight = 600, style = 'Italic' })
|
||||
},
|
||||
{
|
||||
intensity = 'Bold',
|
||||
italic = false,
|
||||
font = wezterm.font('OperatorMono Nerd Font', { weight = 600 })
|
||||
}
|
||||
{
|
||||
intensity = "Bold",
|
||||
italic = true,
|
||||
font = wezterm.font("OperatorMono Nerd Font", { weight = 600, style = "Italic" }),
|
||||
},
|
||||
{
|
||||
intensity = "Bold",
|
||||
italic = false,
|
||||
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
|
||||
|
@ -28,14 +37,13 @@ config.line_height = 1.25
|
|||
config.window_background_opacity = 0.95
|
||||
config.window_decorations = "RESIZE"
|
||||
config.window_padding = {
|
||||
left = 8,
|
||||
right = 8,
|
||||
top = 8,
|
||||
bottom = 8,
|
||||
left = 8,
|
||||
right = 8,
|
||||
top = 8,
|
||||
bottom = 8,
|
||||
}
|
||||
|
||||
-- OS Specific
|
||||
config.macos_window_background_blur = 32
|
||||
|
||||
|
||||
return config
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue