Re: X clipboard

Artur Skonecki <[email protected]>
Newsgroups gmane.comp.gnu.screen.user
Message-ID <alpine.DEB.2.00.1202200947080.13621@cvops>
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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.