On 2021-09-13 11:16 a.m., Paul Smith wrote:
Thanks, Samuel. Yes, it causes mouse clicks.
I assume you're happy with those.
"evtest" recognizes my drawing tablet, and when I successively hit the express keys I get the following: ---------------------------------------- Event: time 1631556826.892457, type 4 (EV_MSC), code 4 (MSC_SCAN), value 700e0 Event: time 1631556826.892457, type 1 (EV_KEY), code 29 (KEY_LEFTCTRL), value 1 Event: time 1631556826.892457, type 4 (EV_MSC), code 4 (MSC_SCAN), value 70013 Event: time 1631556826.892457, type 1 (EV_KEY), code 25 (KEY_P), value 1 Event: time 1631556826.892457, -------------- SYN_REPORT ------------ ^PEvent: time 1631556828.294629, type 4 (EV_MSC), code 4 (MSC_SCAN), value 700e0 Event: time 1631556828.294629, type 1 (EV_KEY), code 29 (KEY_LEFTCTRL), value 1 Event: time 1631556828.294629, type 4 (EV_MSC), code 4 (MSC_SCAN), value 70008 Event: time 1631556828.294629, type 1 (EV_KEY), code 18 (KEY_E), value 1 Event: time 1631556828.294629, -------------- SYN_REPORT ------------ ^EEvent: time 1631556829.256745, type 4 (EV_MSC), code 4 (MSC_SCAN), value 700e0 Event: time 1631556829.256745, type 1 (EV_KEY), code 29 (KEY_LEFTCTRL), value 1 Event: time 1631556829.256745, type 4 (EV_MSC), code 4 (MSC_SCAN), value 7000f Event: time 1631556829.256745, type 1 (EV_KEY), code 38 (KEY_L), value 1 Event: time 1631556829.256745, -------------- SYN_REPORT ------------ ^LEvent: time 1631556830.196848, type 4 (EV_MSC), code 4 (MSC_SCAN), value 7004b Event: time 1631556830.196848, type 1 (EV_KEY), code 104 (KEY_PAGEUP), value 1 Event: time 1631556830.196848, -------------- SYN_REPORT ------------
So the buttons are sending key combinations. You probably don't want to remap those globally, so I suggest using something like https://github.com/kmonad/kmonad or https://github.com/rvaiya/keyd to remap the keys. keyd only remaps, but doesn't run scripts, so you would have to remap the key to another one that you can use as a hotkey.
kmonad allows you to run scripts as well. _______________________________________________ users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure