Skip to content

Numpad #6

@clarkewd

Description

@clarkewd

I have a USB numpad attached, something like this:

485693

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions