Feature Request: DBus API Enhancements
First off, thanks for an amazing tool and piece of software!
I'm working on some tools that interface with Input Remapper using its DBus API and have found some cases that would make things much easier over DBus:
1. Get current preset for device
This could be either an additional return parameter from get_state, or a new method. Either way, it's currently not possible to tell what preset is being applied to a device, only if one is or not (i.e. state is RUNNING).
2. Signals support
DBus also lets applications define signals for events that applications can listen to. In this case, signals for things like "injection started" or "injection stopped" etc would be really helpful. That way, other applications could tell when the state of a device changed without having to poll get_state for every device on the system.
It would also make it easier for applications to see when injection is actually running since the response from start_injecting is always STARTING and we then have to rely on polling get_state to find out when the device actually reaches RUNNING state.
To be honest, I don't know enough about Input Remapper's internals to know how viable these are, and I know that it's in something of a maintenance limbo, but figured I'd put in the request anyway!