Not as far as I remember. Does it help if you redirect xclip stdin to
/dev/null?


On Tue, 28 Jul 2020, 18:14 Kaushal Modi, <[email protected]> wrote:

> Hello Nicholas,
>
> Thanks for your quick reply.
>
> Though, has something then been fixed in tmux that doesn't kill xclip any
> more?
>
> --
> Kaushal Modi
>
>
> On Tue, Jul 28, 2020 at 1:06 PM Nicholas Marriott <
> [email protected]> wrote:
>
>> xclip always stays in the background because it has to own the clipboard,
>> it isn't up to tmux to kill it, it should exit when a new xclip comes
>> along.
>>
>>
>>
>>
>> On Tue, 28 Jul 2020, 18:00 Kaushal Modi, <[email protected]> wrote:
>>
>>> Hello,
>>>
>>> I have been having this in my tmux config for many years and it worked
>>> fine, until recently (past few months).
>>>
>>> =====
>>> set -g set-clipboard off # default is on
>>>
>>> # Copy tmux buffer to primary and clipboard selections
>>> # run -b runs a shell command in background
>>> # http://grota.github.io/blog/2012/05/08/tmux-clipboard-integration/
>>> bind C-w run -b "tmux show-buffer | xclip -i -sel pri && tmux
>>> show-buffer | xclip -i -sel cli"
>>>
>>> # Paste into tmux; also replace LF characters with
>>> # space as separator characters (-s) when pasting.
>>> # Yank from primary
>>> bind C-y run -b "xclip -o -sel pri | tmux load-buffer - && tmux
>>> paste-buffer -s ' '"
>>> =====
>>>
>>> I just realized that the xclip processes created using these bindings
>>> never get killed. Once a certain number of xclip processes are running in
>>> parallel, copy/pasting in tmux using the above bindings stops working.
>>>
>>> Has there been a change in tmux 3+ that could affect this? I don't
>>> recall having to kill stray xclip processes in the last tmux 2.x version.
>>>
>>> --
>>> Kaushal Modi
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "tmux-users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>> To view this discussion on the web, visit
>>> https://groups.google.com/d/msgid/tmux-users/CAFyQvY0LcvEWcshNM1-Px6kRus6MnzBneu%3D_grK-7_mVeCmYNA%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/tmux-users/CAFyQvY0LcvEWcshNM1-Px6kRus6MnzBneu%3D_grK-7_mVeCmYNA%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"tmux-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web, visit 
https://groups.google.com/d/msgid/tmux-users/CAEdLfcGgEmB3NXG4C9M-1tYivqf%2ByGsuFtLOtNZ325AEDPu1DA%40mail.gmail.com.

Reply via email to