-
Notifications
You must be signed in to change notification settings - Fork 15
Open
Description
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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
