screen-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: X clipboard


From: Artur Skonecki
Subject: Re: X clipboard
Date: Mon, 20 Feb 2012 09:57:39 +0100 (CET)
User-agent: Alpine 2.00 (DEB 1167 2008-08-23)


bufferfile "$HOME/.screen-exchange"
# a keybinding for quick xsel
bind > eval  'writebuf' 'exec sh -c "< $HOME/.screen-exchange xsel -i -p"' 'echo 
"Copybuffer written to $HOME/.screen-exchange and to clipboard"'

On Mon, 20 Feb 2012, Axel Beckert wrote:

On Sat, Feb 18, 2012 at 06:23:05PM +0100, Philipp Haselwarter wrote:
is it possible to copy a text selection to the X clipboard? Right now
I'm copying text and piping it into xsel, which works but is a bit
cumbersome, some kind of wrapper or macro would be handy.

"writebuf" can write the contents of the paste buffer to a specified
file.

With xsel, xclip, xcb and friends and maybe a shell script which runs
several 'screen -X' commands in a row and a key bound to executing
that shell script should be possible. Maybe screen's eval command can
also help.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]