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

Re: Command line access to X cut buffer?



On Sat, Mar 30, 2002 at 10:00:21AM -0500, Paul Smith wrote:
> I have a bunch of tools (FvwmButton setup, etc.) that want to grab the
> contents of the X cut buffer and use it to invoke programs, etc.
> 
> For example, if I select a hostname and click mouse-2 on a button in my
> FvwmButtons, I want to start an rxvt which logs into that host:
> 
>     rxvt -e ssh `<display-cut-buffer-contents>`
> 
> or whatever.
> 
> The only command-line tool I've been able to find that will retrieve the
> value of the cut buffer and display it to stdout is wxpaste, which comes
> wmaker.  Nothing against wmaker, but I don't use it and I'd prefer to
> not have to install it.  Are there other alternatives for a tool like
> this?
> 
> Thanks...

What about
    $ xclip -out

(xclip is the debian package name too)


HTH
-- 
Karl E. Jørgensen
karl@jorgensen.com
www.karl.jorgensen.com
Please read http://www.pantsfullofunix.net before reporting bugs in my code.

Attachment: pgpr9wrylQJZa.pgp
Description: PGP signature


Reply to: