From e399082dde892ab8cdc6ca073694b067ffda94e9 Mon Sep 17 00:00:00 2001 From: Maximilian Friedersdorff Date: Mon, 25 Mar 2019 15:05:08 +0000 Subject: [PATCH] Use wl-copy and wl-paste to manage wayland clipboard --- tmux/.tmux.conf | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/tmux/.tmux.conf b/tmux/.tmux.conf index f0c331b..a16b2be 100644 --- a/tmux/.tmux.conf +++ b/tmux/.tmux.conf @@ -35,10 +35,15 @@ set -g mouse on # Dont rename windows (allows setting mail for instance) set -g allow-rename off -# move x clipboard into tmux buffer -bind C-p run "tmux set-buffer \"$(xclip -o)\"" -# move tmux copy buffer into x clipboard -bind C-y run "tmux save-buffer - | xclip -i" +## move x clipboard into tmux buffer +#bind C-p run "tmux set-buffer \"$(xclip -o)\"" +## move tmux copy buffer into x clipboard +#bind C-y run "tmux save-buffer - | xclip -i" + +#move wayland clipbord into tmux buffer +bind C-p run "tmux set-buffer \"$(wl-paste)\"" +# move tmux copy buffer into wayland clipboard +bind C-y run "tmux save-buffer - | wl-copy" -- 2.45.2