I have a USB numpad attached, something like this:

I'd like to program it to execute commands when the keys are pressed. When numlock is off pressing the numeric keys gives a keycode somewhere between 70 and 82 - but when numlock is on three key codes fire for each press with the first and last being 69
If I debug using this command:
/root/actkbd/actkbd -s -d /dev/input/by-id/usb-13ba_0001-event-kbd --verbose 9
Then pressing 1 with numlock on thus yields:
Keys: 69
Keys: 79
Keys: 69
I want to setup /etc/actkbd.conf so numlock is ignored and the key will still exec whatever I have set (eg: /usr/bin/mycmd) with both numlock on and off?
What would the config for that look like? I tried this with no luck:
69:key:ungrabbed,noexec,grab:
69:rel:grabbed,noexec,ungrab,rcvrel,allrel:
79:key:ungrabbed,grab:/usr/bin/mycmd
Thanks
I have a USB numpad attached, something like this:
I'd like to program it to execute commands when the keys are pressed. When
numlockisoffpressing the numeric keys gives a keycode somewhere between70and82- but whennumlockisonthree key codes fire for each press with the first and last being69If I debug using this command:
Then pressing
1with numlock on thus yields:I want to setup
/etc/actkbd.confso numlock is ignored and the key will stillexecwhatever I have set (eg:/usr/bin/mycmd) with both numlock on and off?What would the config for that look like? I tried this with no luck:
Thanks