I have this cheap bluetooth multimedia controller with 5 keys (play, prev, next, vol up, vol down). It's all connected and key presses are recognised:
[root] [~] # showkey
kb mode was UNICODE
[ if you are trying this under X, it might not work
since the X server is also reading /dev/console ]
press any key (program terminates 10s after last keypress)...
keycode 164 press
keycode 164 release
How do I go from here? How do I make this 164 key press to run "mpc toggle" command?
It's an Orange Pi PC+ and Armbian 5.90. This is a console-only machine. No any X window system (most of the keybind solutions I've found were X related).