input-remapper icon indicating copy to clipboard operation
input-remapper copied to clipboard

Running applications

Open sezanzeb opened this issue 3 years ago • 4 comments

Running scripts or starting applications via a key press.

The service has root rights, but editing config files does not require them. This needs to be properly sandboxed to avoid privilege escalations

sezanzeb avatar Dec 14 '21 09:12 sezanzeb

I'm very interested in running scripts via key press, so I could implement a visual feedback for a multilayer config.

br-lemes avatar Dec 17 '21 17:12 br-lemes

I came here to say this. Also, see, beyond running command there are a lot of other things, see for example this open source app for Android, it has lots of functions that could be implemented.

EDIT: also modality: if there is a possibility of changing presets via keys, we could made the keyboard change modes, much like in vim: with one preset you would enter text, in the other would control the pagination, cursor, process text etc. Would be awesome.

iacchus avatar Jan 17 '22 03:01 iacchus

EDIT: also modality: if there is a possibility of changing presets via keys, we could made the keyboard change modes, much like in vim: with one preset you would enter text, in the other would control the pagination, cursor, process text etc. Would be awesome.

I have created an issue about the details of this: https://github.com/sezanzeb/input-remapper/issues/262

You can also already use input-remapper-control to change your preset https://github.com/sezanzeb/input-remapper/blob/main/readme/usage.md#cli and set this as a shortcut in your desktop environment.

Most of them probably have a way of running commands on key presses already:

image

the only value input-remapper would provide over this is different commands in different presets

sezanzeb avatar Jan 17 '22 08:01 sezanzeb

You can also already use input-remapper-control to change your preset https://github.com/sezanzeb/input-remapper/blob/main/readme/usage.md#cli and set this as a shortcut in your desktop environment.

Most of them probably have a way of running commands on key presses already:

In KMonad I use this feature of running applications to run a script which changes the color of my panel, so I have a visual feedback of what layer I'm currently on. The key to toggle layers is invisible to the OS. The same would occurs in input-remapper if you have a key which only changes a variable. Moreover KMonad can run an application on key press and another on key release.

I run KMonad as user, not as root. Just giving my user uinput access. So I don't run commands as root. Maybe you can make input-remapper service run as it's own user, similar to what web servers as Apache does.

Well... just some ideas...

br-lemes avatar Jan 17 '22 12:01 br-lemes