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

Execute shell commands #5

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Execute shell commands #5

wants to merge 5 commits into from

Conversation

bobo1on1
Copy link

@bobo1on1 bobo1on1 commented Feb 7, 2018

This pull request adds functionality to execute one or more shell commands, the commands are executed in their own child process by /bin/sh, the user that executes the commands can be configured.

Example configuration:

command_user: 'bob'
commands:
KEY_KP1:
- 'echo hello'
KEY_KP2:
- 'echo bye'

@philipl
Copy link
Owner

philipl commented Feb 7, 2018

There are many tools out there that can execute arbitrary commands based on a key sequence (even, GNOME, for all its streamlining, has this capability). I don't see any need to add that complexity here.

@bobo1on1
Copy link
Author

bobo1on1 commented Feb 7, 2018

Yes, but they can't execute shell commands from a keypress on a specific device, like for example a usb remote control.

@philipl
Copy link
Owner

philipl commented Feb 7, 2018

Seems like that's what irexec does.

http://www.lirc.org/html/irexec.html

@DanielJoyce
Copy link
Contributor

lirc seems much more complicated to set up. Also seems possibly tied to IR Remotes.

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

Successfully merging this pull request may close these issues.

3 participants