fix wezterm clipboard issue

This commit is contained in:
Daylin Morgan 2024-05-22 12:53:47 -05:00
parent 438b82a525
commit 84c376524d
Signed by: daylin
GPG key ID: 950D13E9719334AD
3 changed files with 18 additions and 33 deletions

View file

@ -1,8 +1,8 @@
$mainMod = SUPER $mainMod = SUPER
# $term = wezterm $term = wezterm
# $termStart = wezterm start $termStart = wezterm start
$term = alacritty # $term = alacritty
$termStart = alacritty # $termStart = alacritty
env = GRIMBLAST_EDITOR, ksnip env = GRIMBLAST_EDITOR, ksnip
# Program binds # Program binds

View file

@ -1,22 +1,12 @@
local wezterm = require("wezterm") local wezterm = require("wezterm")
local act = wezterm.action local act = wezterm.action
local M = {} return {
-- { key = "C", mods = "CTRL|SHIFT", action = act.CopyTo("ClipboardAndPrimarySelection") },
M.keys = {
{ key = "C", mods = "CTRL|SHIFT", action = act.CopyTo("ClipboardAndPrimarySelection") },
-- paste from the clipboard
-- { key = "V", mods = "CTRL|SHIFT", action = act.PasteFrom("Clipboard") },
-- -- paste from the primary selection
-- { key = "V", mods = "CTRL|SHIFT", action = act.PasteFrom("PrimarySelection") },
--
-- change font size
{ key = "-", mods = "CTRL", action = "DecreaseFontSize" }, { key = "-", mods = "CTRL", action = "DecreaseFontSize" },
{ key = "=", mods = "CTRL", action = "IncreaseFontSize" }, { key = "=", mods = "CTRL", action = "IncreaseFontSize" },
-- { key = "Space", mods = "CTRL|SHIFT", action = "QuickSelect" }, -- { key = "Space", mods = "CTRL|SHIFT", action = "QuickSelect" },
{ key = "Space", mods = "CTRL|SHIFT", action = "ActivateCopyMode" }, { key = "Space", mods = "CTRL|SHIFT", action = "ActivateCopyMode" },
} }
return M

View file

@ -1,17 +1,10 @@
local wezterm = require("wezterm") local wezterm = require("wezterm")
local catppuccin = require("colors/catppuccin").setup({}) local catppuccin = require("colors/catppuccin").setup({})
-- local keys = require("keys")
local padding = 10 local padding = 10
local config = {}
if wezterm.config_builder then local config = wezterm.config_builder()
config = wezterm.config_builder()
end
config.hyperlink_rules = wezterm.default_hyperlink_rules()
-- window_background_opacity = 0.9
config.check_for_updates = false config.check_for_updates = false
config.window_padding = { config.window_padding = {
left = padding, left = padding,
@ -20,20 +13,22 @@ config.window_padding = {
bottom = padding, bottom = padding,
} }
config.hide_mouse_cursor_when_typing = false
config.font = wezterm.font("MonoLisa Nerd Font")
config.adjust_window_size_when_changing_font_size = false
config.initial_cols = 80
config.colors = catppuccin config.colors = catppuccin
config.use_fancy_tab_bar = false config.use_fancy_tab_bar = false
config.hide_tab_bar_if_only_one_tab = true config.hide_tab_bar_if_only_one_tab = true
config.tab_bar_at_bottom = true config.tab_bar_at_bottom = true
--config.disable_default_key_bindings = true config.font = wezterm.font("MonoLisa Nerd Font")
config.enable_wayland = false -- config.disable_default_key_bindings = true
config.bold_brightens_ansi_colors = true -- config.bold_brightens_ansi_colors = true
config.default_gui_startup_args = { "start", "--always-new-process" }
-- config.keys = keys.keys
-- config.window_background_opacity = .9 -- config.window_background_opacity = .9
-- config.text_background_opacity = .9 -- config.text_background_opacity = .9
config.hyperlink_rules = wezterm.default_hyperlink_rules()
config.hide_mouse_cursor_when_typing = false
config.adjust_window_size_when_changing_font_size = false
config.initial_cols = 80
config.enable_wayland = false
config.keys = require("keys")
config.default_gui_startup_args = { "start", "--always-new-process" }
return config return config