-
Notifications
You must be signed in to change notification settings - Fork 55
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
Trigger scripts instead of Keys #76
Comments
There currently isn't a way to trigger scripts directly. A workaround is
to trigger a key-combo and have the compositor/window manager tie it to
a script.
If we want wvkbd to directly launch scripts, which sounds like a fair
use case, then we could add a variant 'Script' to the key_type enum, and
tie the code field (uint32_t) to represent the index in a (new) array of
strings that defines the shell commands to be invoked.
How does that sound?
|
thanks for this detailed replay ! |
there are so many keycombos used in the system and i am struggling making long combos like: this will just type a 0 or: will just type a ! instead of simulating the full combo so keycombos are not really a safe way to go.... |
Sorry, I may have set you on the wrong foot by saying "key combo", you can't currently configure a single key to output an actual sequence of keys.
|
If you want multiple modifiers, I think you can add them together with bitwise OR: |
i've just overwritten some regular keybindings for now, but will try your idea. btw. |
Working on a custom layout where i add a button for speech-to-text input and a button to enable touchpad simulation (to show a mouse pointer) for pmos, sxmo, linuxmobile.
but i am not quite sure how i could define to trigger an action/script instead of a keypress. any hints are very welcome 😘
(i promise to document it here)
The text was updated successfully, but these errors were encountered: