My approach has been to move it out of the vendor OS entirely and embedd it in the keyboard. I'll be releasing this as open source (hardware & software) soon:
No connection other than being a fan. I started working on my (simpler) approach before precursor was launched and think there is a place for both, but I'm a big fan of all the work he and his team are doing.
https://www.anomie.tech/products/anigma/ce/