From 14fa6dfcd18b0c36e64e1b8df204201952bd5794 Mon Sep 17 00:00:00 2001 From: sommerfeld Date: Fri, 17 Apr 2026 10:53:41 +0100 Subject: fix: use OSC 52 for clipboard instead of wl-copy System uses Xorg, not Wayland. OSC 52 is terminal-native and works on both X11 and Wayland without external tools. Alacritty supports it natively. Removes copy_command from zellij config (OSC 52 is the default when no copy_command is set). --- home/.config/zsh/.zshrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'home/.config/zsh/.zshrc') diff --git a/home/.config/zsh/.zshrc b/home/.config/zsh/.zshrc index 0a3ee29..a05bbc8 100644 --- a/home/.config/zsh/.zshrc +++ b/home/.config/zsh/.zshrc @@ -110,8 +110,8 @@ autoload -Uz edit-command-line zle -N edit-command-line bindkey "^X^E" edit-command-line -# Ctrl-Y: copy current command line to clipboard -copy-line-to-clipboard() { echo -n "$BUFFER" | wl-copy; } +# Ctrl-Y: copy current command line to clipboard (OSC 52 — terminal-native) +copy-line-to-clipboard() { printf '\033]52;c;%s\a' "$(echo -n "$BUFFER" | base64)" } zle -N copy-line-to-clipboard bindkey '^Y' copy-line-to-clipboard -- cgit v1.2.3-70-g09d2