You are not logged in.

#1 2014-12-02 11:13:59

emto
Member
Registered: 2013-05-08
Posts: 13

[SOLVED] Parcellite CLI issue when copying

Arch Linux 64 bits
Parcellite 1.1.9

Any of these CLI commands copy the string in the second line of parcellite list (unselected), not in the first, so it's unusable under CLI :

echo “text to copy” | parcellite

parcellite “text to copy”

echo “text to copy” | parcellite -c


Anyone has the same issue?

To copy with habitual text selection is ok.

Thank you

Last edited by emto (2014-12-03 15:06:07)

Offline

#2 2014-12-02 16:43:38

smlb
Member
From: /dev/null
Registered: 2013-05-20
Posts: 60
Website

Re: [SOLVED] Parcellite CLI issue when copying

Do you have the synchronize clipboards enabled?

Offline

#3 2014-12-02 23:07:38

emto
Member
Registered: 2013-05-08
Posts: 13

Re: [SOLVED] Parcellite CLI issue when copying

smlb wrote:

Do you have the synchronize clipboards enabled?


I'm working only with copy and paste with Parcellite command  line ( CLI )

try to do this:

 # echo "StringToCopy" | parcellite 

Try it with any of the three methods in parcellite man pages. Is it "StringToCopy" in the top of your parcellite history list?. For me, it appears on the second row and  I cannot access it with bash script.

I have a few bash scripts using parcellite CLI to get data from clipboard and using them like parameters. It was all ok (Lyrics, trasnlations, urls, etc) until an undetermined update.

Offline

#4 2014-12-02 23:26:06

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,543
Website

Re: [SOLVED] Parcellite CLI issue when copying

I know nothing about parcellite - I installed it to try this out but I couldn't get it to do anything.  If you'd consider alternatives, xsel works "out of the box" for CLI access.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#5 2014-12-03 15:05:22

emto
Member
Registered: 2013-05-08
Posts: 13

Re: [SOLVED] Parcellite CLI issue when copying

Trilby wrote:

I know nothing about parcellite - I installed it to try this out but I couldn't get it to do anything.  If you'd consider alternatives, xsel works "out of the box" for CLI access.

Thank you for advice, I'll apply Occam's razor and use xclip. I was stuck with parcellite and we have very easy and reliable system tools.

#To get clipboard content:
DataFromClip=`xclip -o -selection clipboard`

#To write to cliboard:
echo "$DataToClip" | xclip -selection clipboard

Using Clipboard to share with parcellite, like to have history there.

Offline

Board footer

Powered by FluxBB