You are not logged in.

#1 2010-08-03 07:28:49

corruptz0r
Member
From: Atlanta, GA
Registered: 2010-07-07
Posts: 63

How do I make Urxvt use my copy/paste keys?

I want my Urxvt to use Shift+Ctrl+C to copy text, and Shift+Ctrl+P to paste.

How can I make this happen?  I have been Googling for a while tonight and have seen people mention it can be done within .Xdefaults, but no examples. sad

Thanks in advance.

Offline

#2 2010-08-03 08:21:49

ber_t
Member
From: Berlin, Germany
Registered: 2010-03-10
Posts: 214
Website

Re: How do I make Urxvt use my copy/paste keys?

You'll need an perl extension for this. There are thousands on the net, like this one:
http://github.com/muennich/urxvt-perls/ … /clipboard
It requires xsel to be installed, which is in the official repos; enable it by simply copying it into /usr/lib/urxvt/perl/.

Then put the following in your .Xdefaults:

! ... means to append the value, if such an entry is already in your .Xdefaults:
URxvt.perl-ext-common: ...,clipboard
URxvt.keysym.C-S-c: perl:clipboard:copy
URxvt.keysym.C-S-p: perl:clipboard:paste

The Shift key often did not work in these bindings, you could also use Meta (M) instead, if that's the case.

Offline

#3 2010-08-03 22:16:31

vae77
Member
Registered: 2010-07-02
Posts: 75
Website

Re: How do I make Urxvt use my copy/paste keys?

I just use shit + ins to paste after select a text since I'm using zsh.

Last edited by vae77 (2010-08-03 22:17:40)

Offline

Board footer

Powered by FluxBB