From: Maximilian Friedersdorff Date: Mon, 25 Mar 2019 15:05:08 +0000 (+0000) Subject: Use wl-copy and wl-paste to manage wayland clipboard X-Git-Url: https://git.friedersdorff.com/?a=commitdiff_plain;h=e399082dde892ab8cdc6ca073694b067ffda94e9;hp=5fe2bad5ea5116e28213925cd45d2cee02959191;p=max%2Fdotfiles.git Use wl-copy and wl-paste to manage wayland clipboard --- 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"