Skip to content

Shell scripted macros #1958

@peesock

Description

@peesock

Have you checked if an issue already exists for this feature request?

  • Nobody else has requested this feature before

What feature would you like added?

Wondering whether a different type of macro inspired by Keysh would be within scope of the project, where key events (both press and release) and actions are exposed inside a shell script. Keysh does this with stdin and stdout.

Being able to freely program what happens via a scripting language would sidestep a lot of bugs with the current system (#1781 is affecting me right now), though i am not suggesting scripting as a replacement, just another option for advanced users.

The reason i wouldn't opt to just use Keysh is because it's very limited, only having a few actions to choose from, only mapping volume keys, not using an ideal volume changing api, and not being actively developed (thank you for working on Key Mapper). But in spite of that, i can use its scripting to fully replace the old key behavior and do things not currently possible in Key Mapper.

There are other benefits like allowing specific users to work around whatever the new version of Android breaks for them, all kind of given for free by having a turing complete language, but also at the expense of user effort. So i'd like to see what you think.

I'm also personally fine with any other language, like lua, but i believe shell would be the easiest to implement.

App version

No response

Device model and manufacturer

No response

Extra info

  • My device is rooted

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions