input-remapper
input-remapper copied to clipboard
Running applications
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
I'm very interested in running scripts via key press, so I could implement a visual feedback for a multilayer config.
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.
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:
the only value input-remapper would provide over this is different commands in different presets
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...