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:

       key <I166> { [XF86Copy ] };
       key <I167> { [XF86Past ] };

to your .xkbmap file that you can then load through:

    xkbcomp ~/.xkbmap :0

Making your programs recognize XF86Copy and XF86Past is another problem that
you still have to deal with.

Good luck!
Dov

On Mon, Jul 19, 2010 at 12:53, Dotan Cohen <dotanco...@gmail.com> wrote:

> 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
>
> _______________________________________________
> Linux-il mailing list
> Linux-il@cs.huji.ac.il
> http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
>
_______________________________________________
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il

Reply via email to