X-Touch Mini midi controller for darktable

That is encouraging.

I also note that it is possible to send a MIDI message to the X-touch to change the active layer, so something to experiment with together with the lua scripting.