lembas: thanks. It seems like you think I should find an extra device to send commands to start the program?

Progress: I've been unable to find anything like xbindkeys or irxevent that can watch an arbitray device in /dev/input. I thought briefly of browsing and modifying the source code of either program, but instead I think I SHOULD be able to do something this simple with a shell script.

>evtest< offers something interesting: the --query option queries the current state of a certain button and returns 0 if it is not pressed, non-zero if it is. I can set up a watch command like this >watch evtest --query /dev/input/event10 EV_KEY BTN_MODEevtest

Reply via email to