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 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_size = 20
|
||||||
config.font_rules = {
|
config.font_rules = {
|
||||||
{
|
{
|
||||||
intensity = 'Bold',
|
intensity = "Bold",
|
||||||
italic = true,
|
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,
|
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
|
config.hide_tab_bar_if_only_one_tab = true
|
||||||
|
@ -37,5 +46,4 @@ config.window_padding = {
|
||||||
-- OS Specific
|
-- OS Specific
|
||||||
config.macos_window_background_blur = 32
|
config.macos_window_background_blur = 32
|
||||||
|
|
||||||
|
|
||||||
return config
|
return config
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue