On Wed, May 6, 2015 at 1:46 AM, Jean-Baptiste Mestelan <mestelan@gmail.com> wrote:
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?

You'll need to use the XInput extension (x11-xinput package), as X11 core only understands a single keyboard so by default all system keyboards are treated identically and their events mixed into a single event stream.

--
brandon s allbery kf8nh                               sine nomine associates
allbery.b@gmail.com                                  ballbery@sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad        http://sinenomine.net