Shell script: How to paste a variable content into the clipboard?


cube48

Member
Joined
Oct 6, 2008
Messages
288
Location
Bohemia
Website
www.48.cz
Can anybody enlighten me please on how to push variable content into the clipboard on Zaxxon? It seems we don't have neither xclip nor xsel. Is there any other trick how to do this without installing xclip?

Thanks in advance for your hints.
 
xclip compiled easily enough, not sure if it works as I don't have my Pandora on me.. I don't think it's worth making a PND for it, but here is a zip file with it compiled for the pandora, if it works maybe we can get it shoved into the OS repo..

 

xclip.zip
 

Attachments

  • xclip.zip
    9.5 KB · Views: 140
Last edited by a moderator:
Thanks TrashyMG!!!

I'm getting somewhere. It took me some time to find out that using xclip is not as easy as:


# Pass a variable to xclip
echo $LINK | xclip

One needs to run additional line after that to copy the string from XA_PRIMARY to XA_CLIPBOARD (at least on Pandora):


# Copy XA_PRIMARY to XA_CLIPBOARD
xclip -o | xclip -sel clip

More examples are in the official README file.

Yes, it would be cool to have this handy app within next OS update. Can you push it to the right place/person?
 
Back
Top