diff --git a/wezterm.lua b/wezterm.lua index 784b03a..6a9c5a8 100644 --- a/wezterm.lua +++ b/wezterm.lua @@ -19,7 +19,7 @@ config.colors = { -- ── Schrift ───────────────────────────────────────────────────────────── config.font = wezterm.font('MesloLGS NF') -config.font_size = is_linux and 12.0 or 13.0 +config.font_size = is_linux and 18.0 or 13.0 -- ── Fenster ───────────────────────────────────────────────────────────── config.initial_cols = 120 @@ -43,6 +43,19 @@ end -- ── Linux / XFCE (X11) ────────────────────────────────────────────────── if is_linux then config.enable_wayland = false + -- ctrl:swap_lwin_lctl tauscht Cmd/Ctrl — Cmd+C/V landet als Ctrl+C/V + -- Copy bei Selektion, sonst SIGINT (wie copy_or_interrupt in Kitty) + config.keys = { + { key = 'c', mods = 'CTRL', action = wezterm.action_callback(function(window, pane) + local sel = window:get_selection_text_for_pane(pane) + if sel and sel ~= '' then + window:perform_action(wezterm.action.CopyTo 'ClipboardAndPrimarySelection', pane) + else + window:perform_action(wezterm.action.SendKey { key = 'c', mods = 'CTRL' }, pane) + end + end) }, + { key = 'v', mods = 'CTRL', action = wezterm.action.PasteFrom 'Clipboard' }, + } end return config