tbkeys icon indicating copy to clipboard operation
tbkeys copied to clipboard

multimedia / special keys

Open avg-I opened this issue 3 years ago • 1 comments

This is more of a question than an issue (at least for now). How to configure shortcuts for multimedia / special keys? I would like to set a custom action for XF86Forward (using KDE / X).

While here, the same question for extended mouse buttons.

Thank you!

avg-I avatar Nov 25 '21 10:11 avg-I

This is not possible at the moment with tbkeys. mousetrap (which tbkeys uses for managing the keybindings) has support for binding to arbitrary keycodes: https://craig.is/killing/mice#api.addKeycodes. However, some work is needed to expose this feature to the tbkeys settings. I think these keys are not built in because they might be problematic (map to different keycodes for different computers / keyboards so hard to add general support for).

Maybe the easiest way to support these keys is to add another section in the preferences where the user can specify the key code to key name mapping as needed by addKeycodes and leave it to the user to figure out the right keycodes to map.

wshanks avatar Nov 29 '21 20:11 wshanks