Howdy, Ahh, the selection flag tells which clipboard you want to use. There are a few that X andles, but most often you want the clipboard. So, let's say you have file.txt: DISPLAY=:1 xclip -selection clipboard -i file.txt Or: DISPLAY=:1 echo "Hello world" | xclip -selection clipboard Thanks, Storm On Sat, May 04, 2019 at 10:18:53AM -0400, John covici wrote:
I just xclip -i <filename> or echo string|xclip -i I don't think I have a --selection in this one. Yes, there is -selection, but I don't know what the arguments mean. I did -verbose and it said waiting for selection requests and just sat there. On Sat, 04 May 2019 09:49:01 -0400, Storm Dragon wrote:[1 <text/plain; us-ascii (quoted-printable)>] Howdy, Did you remember to use the -selection flag? DISPLAY=:1 xclip -selection clipboard ... Thanks, Storm On Fri, May 03, 2019 at 11:55:43PM -0400, John covici wrote: > Well, some interesting results, if I set DISPLAY to :0, it says no > protocol and does not work, if I set it to :1 it appears to work, but > nothing is actually is on the clipboard, setting it to 2, gives me the > error can't open display. > > On Fri, 03 May 2019 21:08:11 -0400, > Storm Dragon wrote: >> >> [1 <text/plain; us-ascii (quoted-printable)>] >> Howdy, >> >> Sometimes your display is not :0. Try :1, :2, etc. If you get to :9 and it hasn't worked, that is most likely not the issue. >> >> Thanks, >> Storm >> >> On Fri, May 03, 2019 at 09:31:15AM -0400, John covici wrote: >> > I tried exactly that, still get the error. >> > >> > On Fri, 03 May 2019 08:26:16 -0400, >> > Willem van der Walt wrote: >> >> >> >> John, >> >> You must be the same user iI think. >> >> I.E. startx as user john in one tty and in another, log in as john. >> >> Then do export DISPLAY=:0 >> >> Then: >> >> echo 'some string'|xclip -i >> >> What to do in X itself, follow Janina's instructions, as you >> >> might have gathered, I am no gui guru. >> >> HTH, Willem >> >> >> >> >> >> On Fri, 3 May 2019, John Covici wrote: >> >> >> >> > I am trying to get data from the speakup clipboard to the X >> >> > clipboard. If I do >> >> > xclip -i <string> >> >> > it says cannot open display. If I do >> >> > DISPLAY=:0;xclip -i <string> I get the following error: >> >> > Invalid MIT-MAGIC-COOKIE-1 keyError: Can't open display: :0 >> >> > >> >> > How can I get this to work, or is it impossible? >> >> > >> >> > Thanks in advance for any suggestions. >> >> > >> >> > -- >> >> > Your life is like a penny. You're going to lose it. The question is: >> >> > How do >> >> > you spend it? >> >> > >> >> > John Covici wb2una >> >> > covici ccs covici com >> >> > _______________________________________________ >> >> > orca-list mailing list >> >> > orca-list gnome org >> >> > https://mail.gnome.org/mailman/listinfo/orca-list >> >> > Orca wiki: https://wiki.gnome.org/Projects/Orca >> >> > Orca documentation: https://help.gnome.org/users/orca/stable/ >> >> > GNOME Universal Access guide: https://help.gnome.org/users/gnome-help/stable/a11y.html >> >> > Log bugs and feature requests at http://bugzilla.gnome.org >> >> > >> > >> > -- >> > Your life is like a penny. You're going to lose it. The question is: >> > How do >> > you spend it? >> > >> > John Covici wb2una >> > covici ccs covici com >> > _______________________________________________ >> > orca-list mailing list >> > orca-list gnome org >> > https://mail.gnome.org/mailman/listinfo/orca-list >> > Orca wiki: https://wiki.gnome.org/Projects/Orca >> > Orca documentation: https://help.gnome.org/users/orca/stable/ >> > GNOME Universal Access guide: https://help.gnome.org/users/gnome-help/stable/a11y.html >> > Log bugs and feature requests at http://bugzilla.gnome.org >> >> -- >> Storm Dragon >> Linux accessibility community: https://linux-a11y.org/ >> 24 hour IRC support: irc.linux-a11y.org #a11y >> Voice chat and support: mumble.linux-a11y.org >> [2 signature.asc <application/pgp-signature (7bit)>] >> No public key for 5BEA237143DDC193 created at 2019-05-03T21:08:10-0400 using RSA > > -- > Your life is like a penny. You're going to lose it. The question is: > How do > you spend it? > > John Covici wb2una > covici ccs covici com -- Storm Dragon Linux accessibility community: https://linux-a11y.org/ 24 hour IRC support: irc.linux-a11y.org #a11y Voice chat and support: mumble.linux-a11y.org [2 signature.asc <application/pgp-signature (7bit)>] No public key for 5BEA237143DDC193 created at 2019-05-04T09:48:57-0400 using RSA-- Your life is like a penny. You're going to lose it. The question is: How do you spend it? John Covici wb2una covici ccs covici com
-- Storm Dragon Linux accessibility community: https://linux-a11y.org/ 24 hour IRC support: irc.linux-a11y.org #a11y Voice chat and support: mumble.linux-a11y.org
Attachment:
signature.asc
Description: PGP signature