Assigning keys to Copy (ctrl-x) and Paste (ctrl-v)

Assigning keys to Copy (ctrl-x) and Paste (ctrl-v)

Dotan Cohen dotancohen at gmail.com
Mon Jul 19 12:53:01 IDT 2010


I have a Microsoft Ergonomic 4000 keyboard with some multimedia keys
that are not in use. I'd like to assign them to Copy and Paste in X.
Although I use Kubuntu Linux, I would prefer a non-distro and non-DE
specific manner.

The key that I would like to assign for Copy has these properties:
Scancode (showkey -s):
0xe0 0xba
0xe0 0xea

Keycode (showkey):
158

Keycode (xev):
166

I have tried these .Xmodmap lines and none of the worked to assign the
key to Cut:
keycode 158 = XF86Copy
keycode 166 = XF86Copy

I should note that I _think_ that XF86Copy affects the mouse
highlight-and-middle-click clipboard, not the ctrl-c|ctrl-v clipboard.
It is the later that I do need, not the former. Thanks.


-- 
Dotan Cohen

http://gibberish.co.il
http://what-is-what.com



More information about the Linux-il mailing list