Skip to content

Execute shell commands#5

Open
bobo1on1 wants to merge 5 commits intophilipl:masterfrom
bobo1on1:master
Open

Execute shell commands#5
bobo1on1 wants to merge 5 commits intophilipl:masterfrom
bobo1on1:master

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