I am using it with an built in IR transceiver in my Intel Nuc (evdev). It assists with automating and evdev.
Here's a sample action file that I have thus far:
So, volume up button on a remote that I don't own does a power off, this is actually sent from my home theater UPS when it reaches a certain amount of power left. The 0 key will start mythfrontend, that checks if already running, and if it is, gives focus to it. If it isn't, it runs it on the main display (projector). This 0 is actually sent by an IOS device, one of those graphical self made remotes (Touchcontrol). Once mythfrontend is started, the IOS remote can send the appropriate commands to the mythfrontend socket control port and I can have logically labelled buttons to control it. I am sure there will be a few other functions that will be done via inputexec, my xubuntu version seems to have a display bug with xfce where the screen goes blank and a command is needed to bring it back, so, a simple reset display button would run the appropriate command.
Code: Select all
[commands] keypress.KEY_VOLUMEUP = systemctl poweroff keypress.KEY_NUMERIC_0 = /home/sfatula/Documents/Scripts/StartMythfrontend.sh
I am liking inputexec. It's a decent tool since I was really missing EventGhost. I am sure there are other tools, but, didn't see any mention here of this one so thought I'd mention it in case someone needs such a tool. An alternative to coding with python-evdev.