diff options
| author | 2026-04-17 10:53:41 +0100 | |
|---|---|---|
| committer | 2026-04-17 10:53:41 +0100 | |
| commit | 14fa6dfcd18b0c36e64e1b8df204201952bd5794 (patch) | |
| tree | b1470a6db7e074a43f75c8c49ab95d3a2d615e1a | |
| parent | 43c5a4ff6d114ccc2c91a00617d50d4a8d820e70 (diff) | |
| download | dotfiles-14fa6dfcd18b0c36e64e1b8df204201952bd5794.tar.gz dotfiles-14fa6dfcd18b0c36e64e1b8df204201952bd5794.tar.bz2 dotfiles-14fa6dfcd18b0c36e64e1b8df204201952bd5794.zip | |
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).
| -rw-r--r-- | home/.config/zellij/config.kdl | 3 | ||||
| -rw-r--r-- | home/.config/zsh/.zshrc | 4 |
2 files changed, 3 insertions, 4 deletions
diff --git a/home/.config/zellij/config.kdl b/home/.config/zellij/config.kdl index f3d3aa7..791b5cd 100644 --- a/home/.config/zellij/config.kdl +++ b/home/.config/zellij/config.kdl @@ -15,8 +15,7 @@ scroll_buffer_size 50000 // Clipboard: copy to system clipboard on selection copy_on_select true -// Use wl-copy for Wayland clipboard (fallback from OSC 52) -copy_command "wl-copy" +// Clipboard is handled via OSC 52 (terminal-native, no external tools needed) // Auto-attach to existing session with the same name instead of erroring attach_to_session true 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 |
