Just in case the question was more specific than it needed to be, it's possible the numeric keypad reports different keys than the "number keys" at the top of your normal keyboard anyway. X distinguishes between xK_6 and xK_KP_6. So if you don't normally use the keypad on your main keyboard, this can be an option.

~d

On Tue, May 5, 2015 at 10:46 PM, Jean-Baptiste Mestelan <mestelan@gmail.com> wrote:
Hello,


I have a USB numeric keypad lying about, and would like to use its
keys as special shortcuts (like, its Num-6 could simulate
XF86AudioNext...).
How do I tell its key strokes apart from those of the main keyboard?
Is this done at X level?
Would the helpful people on this list provide some pointers, or set me started?

Thanks for attention.

* FWIW, here is dmesg:
[81553.409035] input: USB KB USB KB as
/devices/pci0000:00/0000:00:14.0/usb3/3-3/3-3.4/3-3.4:1.0/0003:1241:1503.0006/input/input31
[81553.409193] hid-generic 0003:1241:1503.0006: input,hidraw2: USB HID
v1.10 Keyboard [USB KB USB KB] on usb-0000:00:14.0-3.4/input0
_______________________________________________
xmonad mailing list
xmonad@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad