keymapperorg / KeyMapper

An Android app that change what the buttons do on your devices!
http://docs.keymapper.club
GNU General Public License v3.0
1.26k stars 164 forks source link

Suggestion: predefined app groups #1083

Open Efreak opened 2 years ago

Efreak commented 2 years ago

Feature request: instead of selecting a single app for constraints (foreground app, media playback, etc), please allow a predefined list; the constraint returns true if it applies to any of the apps in the list.

Background:

I've got four groups of apps for which I have multiple defined shortcuts:

Each trigger defined in key mapper is quite long, as it shows all the defined apps in the constraint; instead, it would be nice to see just a name for that group of apps, as well as easily create new triggers for that group of apps. This should also allow more complex constraints without making the UI more complex, rather than including multiple triggers for multiple possible foreground apps to control background media payback

There's an example here of a couple functions that are annoyingly long. I'd actually prefer even the triggers at the bottom be smaller, 1-2 lines, but that's just because I favor density of information over looks.

sds100 commented 2 years ago

I like this idea. So would you like to have a way to create and view "groups" of apps at the top of the app-choosing screen?

Efreak commented 2 years ago

Yes, this is what I'm looking for.

Note: I previously said the constraint should return true if it matches any app in the group, but on reflection this may need to depend on whether the constraint is a positive or a negative--if your constraint is group is playing music then any app as described works fine, but if constraint is group is not playing music then it should probably return true if none of the apps is playing music. Same with foreground app as constraint and maybe others as well.