How to change default shortcuts for copy / paste in urxvt?

I am trying to configure copy / paste actions using ctrl+shift+c/p, as is done on the GNOME terminal, but for urxvt. I did not find a simple solution - it seems that it always requires scripts, hacks, etc., which annoys me when it comes to such basic things. That's why I am wondering if it is possible to simply modify / add some entries in ~/.Xresourceto move the default behavior from ctrl+alt+c/pto ctrl+shift+c/p- since the first is already working as expected.

In addition, there are many concepts regarding the clipboard itself: X calls them "selection", not "clipboards"; there is a choice of PRIMARY and CLIPBOARD; etc. I don’t quite understand all these subtleties - so feel free to be detailed!

I am using an Xorg server with i3 WM if it makes sense and rxvt-unicode v9.22 - released: 2016-01-23

+7
source share
2 answers

short: no you can't

longer: I indicated in renaming CTRL-ALT- [C | V] to CTRL-SHIFT- [C | V] in URxvt> = 9.20 , that the binding for them is essentially hardcoded in urxvt without a simple way to change them (in addition to external scripts or modifying the program itself).

0

, , . , , eval .Xresources. :

URxvt.keysym.Shift-Control-V: eval:paste_clipboard
URxvt.keysym.Shift-Control-C: eval:selection_to_clipboard

, :

URxvt.keysym.Control-Meta-c: builtin-string:
URxvt.keysym.Control-Meta-v: builtin-string:

:

xrdb -load .Xresources

rxvt, .

+16

Source: https://habr.com/ru/post/1674409/


All Articles