How to copy-paste into Terminal from global clipboard?

301 views
Skip to first unread message

Nik H

unread,
Dec 7, 2017, 1:33:37 AM12/7/17
to qubes-users
This may be a silly question but I've been unable to figure it out: I quite often want to paste something from a browser into a Terminal in a different vm.

Global, secure copy / paste is Ctrl-Shift-c / Ctrl-Shift-v

In a Terminal window, these shortcuts are mapped to normal copy paste, rather than inter-vm copy pasting so it doesn't work out of the box.

I then changed the global copy paste shortcut to use the windows key. It's explained elsewhere but it means changing guid.conf and adding Mod4-c and Mod4-v for secure copy paste.

This works great (well - after restart)! I tested it in various apps, it does what it should.

However, it still doesn't work on the Terminal application. For whatever reason, Windows-C just types a C and the same for V. Global keyboard shortcuts seem to be ignored while Terminal is active.

Anybody have an idea how to solve this? Thanks!

Yethal

unread,
Dec 7, 2017, 1:34:50 AM12/7/17
to qubes-users
Right click into the Terminal window and select Paste. Regular paste via keyboard shortcut doesn't work in terminal windows for some reason

Zrubi

unread,
Dec 7, 2017, 3:29:34 AM12/7/17
to Nik H, qubes-users
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On 12/07/2017 07:33 AM, Nik H wrote:
> This may be a silly question but I've been unable to figure it out:
> I quite often want to paste something from a browser into a
> Terminal in a different vm.
>
> Global, secure copy / paste is Ctrl-Shift-c / Ctrl-Shift-v
>
> In a Terminal window, these shortcuts are mapped to normal copy
> paste, rather than inter-vm copy pasting so it doesn't work out of
> the box.

Shift-Insert is the "magic key" you searching for ;)


- --
Zrubi
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCAAGBQJaKPvbAAoJEBozWgtUjzdkJn8QAM+kAw49JMRHnYTJylRM0Dox
KwKADlyBw2WbCO72Jr6mI8p9zhoYuL/iByZhOZZpQVuJfLkNkU0Nuc5HaLBcfYGn
pSfVHALVdTi8ak8UiCnKcnm95ZTBRcVoMqiTMSqw1iqOJxo9YV+acJaMkSuTn9cF
yD/WVzSzUabQOPSUhGmnA+ktQMZU+283kTa1wAel6w2n8FIXx4hMoycJoOORE8Tg
GyC57YkOUxmHGEcbeXLF02gWH/DXWBP2HRuiPRteBfKEfJzeptci2sh1701GZJ/s
j4mFh+3E7ag5RHWU12XfgaumFfnrIMiT7OadqQX+O5He2z+/XBN/Kx2XPdNAdVrQ
hM8GP03ofmAhGNtNnKOflfCodvWtg/mvdhhSfbLZJkLe3DQQuWyMjxEsdJCeVXIC
2PzslXjfiETlBpUT2suB9kOCx8WyM+8Bw8isIRBF3av5OIoGB2+9xz1gip2PA4nD
6FAFeWVSlpTqBLRYzfgz7fa0SuuuY5QPKp8Cu3UZEsEUtieEZAR7LxVf1btbbpNF
qnabIx40vIJ9IdMfgVO0FExXw0JKYKCvsw+99WnKVsWov8NJVfyaW1a2hmzQSxC9
cs4D+2Af+NlexpDx3TkctpV88wXtJeFAUrViGq6l3LfdTkcebV+/n12u4grniTKf
XeWtQzwfl39VWda7nggi
=eY4w
-----END PGP SIGNATURE-----

Grzesiek Chodzicki

unread,
Dec 7, 2017, 4:10:18 AM12/7/17
to Nik H, qubes-users
Do the global paste while terminal is in focus then do the right click

07.12.2017 07:45 "Nik H" <nhe...@gmail.com> napisał(a):


> On Dec 7, 2017, at 1:34 PM, Yethal <grzegorz....@gmail.com> wrote:
>>
> Right click into the Terminal window and select Paste. Regular paste via keyboard shortcut doesn't work in terminal windows for some reason
>

No, that’s just a regular paste. I want to use the global paste, e.g. paste from one vm to another.

Use case:
I copy something in vm “personal” (this is ctrl-C followed by ctrl-shift-c to copy the vm clipboard to the global clipboard)
I paste it into a terminal in vm Dom0



Tom Zander

unread,
Dec 7, 2017, 4:21:20 AM12/7/17
to qubes...@googlegroups.com
On Thursday, 7 December 2017 09:29:22 CET Zrubi wrote:
> On 12/07/2017 07:33 AM, Nik H wrote:
> > This may be a silly question but I've been unable to figure it out:
> > I quite often want to paste something from a browser into a
> > Terminal in a different vm.
> >
> > Global, secure copy / paste is Ctrl-Shift-c / Ctrl-Shift-v
> >
> > In a Terminal window, these shortcuts are mapped to normal copy
> > paste, rather than inter-vm copy pasting so it doesn't work out of
> > the box.
>
> Shift-Insert is the "magic key" you searching for ;)

More specifically;
to paste to a VM you use ctrl-shift-v which makes it available to all apps
in that VM.
Followed by shift-insert to paste it to your termnal.

I use konsole, the KDE terminal. It happens to not map ctrl-shift-c/v making
this an out-of-the box experience.

--
Tom Zander
Blog: https://zander.github.io
Vlog: https://vimeo.com/channels/tomscryptochannel

Zrubi

unread,
Dec 7, 2017, 4:58:33 AM12/7/17
to Bernhard, qubes...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On 12/07/2017 10:15 AM, Bernhard wrote:

> To insert into a terminal Ctrl-Shift-v and "middle mouse" to drop
> works as well. The question is rather how to copy "out of" a
> terminal (say a link that is to be put in a dispvm browser). Here
> the marking by mouse and Ctrl-Shift-c does *not* work. One has to
> mark it first, then go to the terminal menu, ask "copy" there and
> then do Ctrl-Shift-c. This is annoying. Someone has a shortcut for
> that?

Ctrl+Instert will do the copy task in most terminals.
(Of course you can also reassign these defaults according to your needs)



- --
Zrubi
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCAAGBQJaKRC5AAoJEBozWgtUjzdkq8YP/1W4gOsnMrRHwmqaePDFdU2C
+jlMI0fnkm3I+YusGfV3Z2Xj9jgaVatoSz8rNUzvAIt5kpF269frUmNAp9xA6dJr
JbVX7hksOmmnGj/v44xQ0Zw2iK2FsW0XtOlMipTmDx8cTVeAiK0LhAK9f0Ms22iY
i67KxlcLCYF/t5+p4IObeKzU3veBBsTCrHC+GELKacyxDmtG85GZKI608iQQF4Qy
V21PBaD4JBAWHSZ/1G9Bif7mo1dpTqpVPF8zhhLjWpLudjamiDQGLxAjao57mgBV
wrknumEMLcJE2y+PMHiOD6sg/WiJIkjZ9/q3aYX+Yj62ZuhkJQ86xiGoS/bubMtg
viuaB7bfzfiR0Al2csO41nMKcz87w34iVTTuv1o/ul1C4fGn7VyVt7tbOP4/XDFc
nGNvMCab0Kf0meGkqAku3GMHrBhIeADAlqQ65fYdeil5GSfAt9zBUJAjCoN/K0G9
KTCiXkxeEaP1ARSFEyVe3cQ3j9Fko4ysxqEwr07+Vxtu6/bDKWjM/AqS8JilIMLI
Vr7Lu7yswrN0A28owcjFIBacXszhvyu/o64Teryh5Wr8wrjyhIpTVBOTTmIZCmjC
iMDIEFGnlj/QUPlRbZQXrRuJOcbC4NMqINkL6n7NjX/38Dk5D8Z+p/2AfUSjM1EO
glTOe0Byn9CGkS8IQrA0
=7jA7
-----END PGP SIGNATURE-----
Reply all
Reply to author
Forward
0 new messages