<div dir="ltr">I prefer using xkb to define my keyboard mappings (though I still far from understand it fully). To do what you want in xkb you would lines similar to:<br><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> key <I166> { [XF86Copy ] };<br>
key <I167> { [XF86Past ] };<br>
</span><br style="font-family: courier new,monospace;">to your .xkbmap file that you can then load through:<br><br><font face="courier new,monospace"> xkbcomp ~/.xkbmap :0<br><br><font face="arial,helvetica,sans-serif">Making your programs recognize XF86Copy and XF86Past is another problem that you still have to deal with.<br>
<br>Good luck!<br>Dov<br><br></font></font><div class="gmail_quote">On Mon, Jul 19, 2010 at 12:53, Dotan Cohen <span dir="ltr"><<a href="mailto:dotancohen@gmail.com">dotancohen@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I have a Microsoft Ergonomic 4000 keyboard with some multimedia keys<br>
that are not in use. I'd like to assign them to Copy and Paste in X.<br>
Although I use Kubuntu Linux, I would prefer a non-distro and non-DE<br>
specific manner.<br>
<br>
The key that I would like to assign for Copy has these properties:<br>
Scancode (showkey -s):<br>
0xe0 0xba<br>
0xe0 0xea<br>
<br>
Keycode (showkey):<br>
158<br>
<br>
Keycode (xev):<br>
166<br>
<br>
I have tried these .Xmodmap lines and none of the worked to assign the<br>
key to Cut:<br>
keycode 158 = XF86Copy<br>
keycode 166 = XF86Copy<br>
<br>
I should note that I _think_ that XF86Copy affects the mouse<br>
highlight-and-middle-click clipboard, not the ctrl-c|ctrl-v clipboard.<br>
It is the later that I do need, not the former. Thanks.<br>
<br>
<br>
--<br>
Dotan Cohen<br>
<br>
<a href="http://gibberish.co.il" target="_blank">http://gibberish.co.il</a><br>
<a href="http://what-is-what.com" target="_blank">http://what-is-what.com</a><br>
<br>
_______________________________________________<br>
Linux-il mailing list<br>
<a href="mailto:Linux-il@cs.huji.ac.il">Linux-il@cs.huji.ac.il</a><br>
<a href="http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il" target="_blank">http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il</a><br>
</blockquote></div><br></div>