houmain / keymapper

A cross-platform context-aware key remapper.
GNU General Public License v3.0
257 stars 21 forks source link

Support additional AVCRP media keys on Linux #124

Closed ristomatti closed 1 month ago

ristomatti commented 3 months ago

This adds support to following keys on Linux:

It should be noted that I can't get these events to show up on the JavaScript Key Code Event Tool at all. I tried to align the naming with the existing ones (e.g. already existing alias MediaStop shows up as KEY_STOPCD when using evtest).

Background: I've got BT headphones and a BT A2DP receiver that send KEY_PLAYCD and/or KEY_PAUSECD events when tapped. On Android these work like play/pause. Both input devices use similar names (Ugreen-70304E (AVRCP), Ugreen-70304E (AVRCP)).

KEY_REWIND and KEY_FASTFORWARD on the other hand can be mapped in QMK.

More info:

ristomatti commented 1 month ago

Thanks!