duzhaokun123 / YAMF

Yet Another Mi-FreeForm
GNU General Public License v3.0
178 stars 14 forks source link

Add shortcut feature #11

Closed me7tarfeek closed 10 months ago

me7tarfeek commented 10 months ago

Description

Need the ability to run application shortcut from Tasker for example to start any app in Freeform using YAFM

Describe the solution you'd like

No response

Describe alternatives you've considered

No response

duzhaokun123 commented 10 months ago

boardcast

duzhaokun123 commented 10 months ago

and io.github.duzhaokun123.yamf.action.OPEN_APP

see https://github.com/duzhaokun123/YAMF/blob/9838dc93985aba8610c598140a33a8c02d023a1e/app/src/main/java/io/github/duzhaokun123/yamf/xposed/services/YAMFManager.kt#L209-L215

i'm not sure if it work when call from command line

me7tarfeek commented 10 months ago

Thanks a lot… the first two broadcast is good enough.. I launch any app I want, then run the command: am broadcast -a io.github.duzhaokun123.yamf.action.CURRENT_TO_WINDOW

And it opens in freeform… 👍

Great work… thanks

me7tarfeek commented 10 months ago

Thanks a lot