You are not logged in.

#1 2016-12-26 11:01:37

collector1871
Member
From: Poland
Registered: 2016-12-05
Posts: 51

[SOLVED] right-click paste in urxvt terminal ?

I know that Linux have multiple clipboard systems, but I want simple thing:

in urxvt terminal change behavior of middle-scroll button with right-click mouse button.

At this moment select-and-copy works fine. Middle-scroll button also is working fine.

but:
how can I change this in urxvt: middle-scroll-click-paste >>> right-click-paste ?

(I have google it, but nothing found)

Last edited by collector1871 (2017-03-18 10:40:41)


My: AUR and homepage .

Offline

#2 2016-12-26 16:17:06

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: [SOLVED] right-click paste in urxvt terminal ?

Why do you want it and why specifically in urxvt? It should be achievable system wide using something like xmodmap.

Offline

#3 2016-12-26 16:20:57

Docbroke
Member
From: India
Registered: 2015-06-13
Posts: 1,433

Re: [SOLVED] right-click paste in urxvt terminal ?

What you are trying to change is default behaviour of mouse buttons, and it is not urxvt specific. You may have to change mouse key layout/keybindings. I am not sure how to do that. However if you are not comfortable using middle-scroll button you may try shift+insert key.

Offline

#4 2016-12-26 17:14:57

collector1871
Member
From: Poland
Registered: 2016-12-05
Posts: 51

Re: [SOLVED] right-click paste in urxvt terminal ?

x33a wrote:

Why do you want it and why specifically in urxvt? It should be achievable system wide using something like xmodmap.

I am using also PuTTy and in this case it is more comfortable using right-button as paste.

I found something like this:
http://askubuntu.com/questions/734647/r … n-terminal

but it is no urxvt specific.


Any idea how to do it from xmodmap ?

Last edited by collector1871 (2016-12-26 17:27:00)


My: AUR and homepage .

Offline

#5 2016-12-26 23:52:36

ayekat
Member
Registered: 2011-01-17
Posts: 1,589

Re: [SOLVED] right-click paste in urxvt terminal ?

collector1871 wrote:

I am using also PuTTy and in this case it is more comfortable using right-button as paste.

I still don't get why people would use GUIs for SSH on Unix systems (see https://bbs.archlinux.org/viewtopic.php?id=220896). It just seems like a bad habit taken over from Windows¹ (both the idea of using GUIs for SSH, and using right click for pasting the primary selection).

I don't know if xmodmap is a good idea - if you map button 2 to button 3, you'll lose button 2. And swapping will make all right-button clicks (e.g. context menus) awkward. According to the urxvt man page, middle click will paste the primary selection, and the wording suggests that this behaviour is hardcoded. Given that the Linux world generally expects button 2 to behave in that way, I would try to get used to using button 2.

This reply does probably not help you directly, but I hope it puts things in perspective a little.

___
¹ Then again, putty is in extra, so some dev thought it would be a good idea - I'll stop complaining.


pkgshackscfgblag

Offline

#6 2016-12-27 03:40:58

HiImTye
Member
From: Halifax, NS, Canada
Registered: 2012-05-09
Posts: 1,072

Re: [SOLVED] right-click paste in urxvt terminal ?

urxvt gives you a pop-up menu with ctrl+right click
alternately, you can use ctrl+alt+c and ctrl+alt+v/shift+insert for copy and paste.
note: that shift+insert has a slightly different clipboard behaviour
and as always, you can middle click your most recent selection

Last edited by HiImTye (2016-12-27 03:41:53)

Offline

#7 2017-03-18 10:39:43

collector1871
Member
From: Poland
Registered: 2016-12-05
Posts: 51

Re: [SOLVED] right-click paste in urxvt terminal ?

(I hope this is not necro-bumping)
all@
thanks for answers.

Recently I switched to terminator terminal ( https://wiki.archlinux.org/index.php/Terminator ) - it is the only one which I founded with "right-click-paste" support.

Terminator is working via GTK3: so is somebody is thinking about migration, you should know how to deal with GTK3 applications.

topic is solved.

Last edited by collector1871 (2017-03-18 10:40:23)


My: AUR and homepage .

Offline

Board footer

Powered by FluxBB