evdevremapkeys icon indicating copy to clipboard operation
evdevremapkeys copied to clipboard

Execute shell commands

Open bobo1on1 opened this issue 7 years ago • 4 comments

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'

bobo1on1 avatar Feb 07 '18 22:02 bobo1on1

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.

philipl avatar Feb 07 '18 22:02 philipl

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

bobo1on1 avatar Feb 07 '18 22:02 bobo1on1

Seems like that's what irexec does.

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

philipl avatar Feb 07 '18 23:02 philipl

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

DanielJoyce avatar Aug 17 '20 16:08 DanielJoyce