0

I have bought a new laptop (Brand: Trekstor).

This laptop is optimized for Windows unfortunately not for Unix. On the keyboard is a key which toggles the touchpad but currently this key has no function. I have written already a script which toggles the touchpad. Now the only one thing left is to bind the script to this key.

I have also ran the evtest on the keyboard interface. I get the following when I press this key.

Event: time 1523799664.558188, type 4 (EV_MSC), code 4 (MSC_SCAN), value 1d
Event: time 1523799664.558188, type 1 (EV_KEY), code 29 (KEY_LEFTCTRL), value 1
Event: time 1523799664.558188, -------------- SYN_REPORT ------------
Event: time 1523799664.563820, type 4 (EV_MSC), code 4 (MSC_SCAN), value db
Event: time 1523799664.563820, type 1 (EV_KEY), code 125 (KEY_LEFTMETA), value 1
Event: time 1523799664.563820, -------------- SYN_REPORT ------------
Event: time 1523799664.566293, type 4 (EV_MSC), code 4 (MSC_SCAN), value 76
Event: time 1523799664.566293, type 1 (EV_KEY), code 85 (KEY_ZENKAKUHANKAKU), value 1
Event: time 1523799664.566293, -------------- SYN_REPORT ------------
Event: time 1523799664.570814, type 4 (EV_MSC), code 4 (MSC_SCAN), value 76
Event: time 1523799664.570814, type 1 (EV_KEY), code 85 (KEY_ZENKAKUHANKAKU), value 0
Event: time 1523799664.570814, -------------- SYN_REPORT ------------
Event: time 1523799664.577457, type 4 (EV_MSC), code 4 (MSC_SCAN), value db
Event: time 1523799664.577457, type 1 (EV_KEY), code 125 (KEY_LEFTMETA), value 0
Event: time 1523799664.577457, -------------- SYN_REPORT ------------
Event: time 1523799664.582445, type 4 (EV_MSC), code 4 (MSC_SCAN), value 1d
Event: time 1523799664.582445, type 1 (EV_KEY), code 29 (KEY_LEFTCTRL), value 0
Event: time 1523799664.582445, -------------- SYN_REPORT ------------

I recognize 3 different keys (29, 125, 85). I have already tried to use xbindkey for this use. However xbindkey is made for one single key including a control key. Is it anyways possible to bind multiple shortcut to one command ?

If it is not possible with xbindkey how can I achieve my intention?

Kind Regards

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.