Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature request] KeyHandler shell script/binary executed at each remote control key press #7

Open
xeros opened this issue Oct 4, 2011 · 0 comments

Comments

@xeros
Copy link

xeros commented Oct 4, 2011

I would like to get /bin/keyhandler or something simmilar being executed with system() call with key hex code as argument from libopenrelease.so on each button press.
Such thing can be enabled/disabled (disabled by default) in openrelease.cfg option.
For example:
keyhandler = /bin/keyhandler
with default:
keyhandler = NULL

So it would run for example '/bin/keyhandler a9' for Guide button press.

Such code should wait until /bin/keyhandler exits (some timeout?), check its exit status and depends on exit status run other key events actions or not.

Examples of exit status:
0 - key action has been run, stop doing other actions.
1 - generate just uinput event
2 - run action set in openrelease_keymap.cfg
3 - generate uinput event and run action set in openrelease_keymap.cfg
... ?

We could then enhance functionality with such script or binary to execute actions in Linux shell depends on which key has been pressed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant