From 226f6fb3c8d56caaef3e0ca5224715c9d97669c2 Mon Sep 17 00:00:00 2001 From: PlexSheep Date: Sat, 4 Feb 2023 19:00:21 +0100 Subject: [PATCH] tmux copy works on wayland --- home/.tmux.conf | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/home/.tmux.conf b/home/.tmux.conf index 9132fa9..ac178c9 100644 --- a/home/.tmux.conf +++ b/home/.tmux.conf @@ -49,6 +49,9 @@ bind -n M-j previous-window bind -n M-k next-window # tmux modes stuff. we have default mode and copy mode. +# change the copy mode key to prefix-N , the default config isnt good for qwertz keyboards. +bind-key N copy-mode + # obviously use vim keys for copymode (think normal mode in vim) # with these options we can yank the tmux copy stuff into the system clipboard. set-window-option -g mode-keys vi @@ -58,8 +61,8 @@ unbind -T copy-mode-vi Enter; #Default for copy-selection bind -T copy-mode-vi v send-keys -X begin-selection # copy to XORG clipboard, but this apperantly works with wayland aswell (on my system). TODO: test this for headless servers. -bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "xsel --clipboard" -#bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "wl-keyboard" +#bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "xsel --clipboard" +bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "wl-copy" # magic tweaks for better use with vim or neovim set -g -a terminal-overrides ',*:Ss=\E[%p1%d q:Se=\E[2 q'