From: Maximilian Friedersdorff Date: Mon, 7 Jun 2021 08:37:09 +0000 (+0100) Subject: Use clipboard, not primary selection for tmux copy paste X-Git-Url: https://git.friedersdorff.com/?a=commitdiff_plain;h=47c858bd94e6c79e904f0adf91d20753ae10cadc;p=max%2Fsaltfiles.git Use clipboard, not primary selection for tmux copy paste --- diff --git a/states/tmux/files/wm_copy b/states/tmux/files/wm_copy index 44a802c..1ea6ef0 100644 --- a/states/tmux/files/wm_copy +++ b/states/tmux/files/wm_copy @@ -3,5 +3,5 @@ if [[ $XDG_SESSION_TYPE == "wayland" ]]; then wl-copy < /dev/stdin > /dev/null else - xclip -i < /dev/stdin > /dev/null + xclip -selection clipboard -i < /dev/stdin > /dev/null fi diff --git a/states/tmux/files/wm_paste b/states/tmux/files/wm_paste index f25a0d2..abf1385 100644 --- a/states/tmux/files/wm_paste +++ b/states/tmux/files/wm_paste @@ -3,5 +3,5 @@ if [[ XDG_SESSION_TYPE == "wayland" ]]; then wl-paste else - xclip -o + xclip -selection clipboard -o fi