zobnin / aiolauncher_scripts

Scripts for the AIO Launcher
https://aiolauncher.app
86 stars 20 forks source link

Add Tasker Widget control script #4

Closed sriramsv closed 2 years ago

sriramsv commented 2 years ago

Adding a widget that can control adding/removing scripts from tasker tasks This listens to broadcast intents from the tasker using the AIO launcher tasker API and adds or removes widgets on the home screen.

Few issues that I faced:

zobnin commented 2 years ago

Issues:

  1. You need to use script name with extension.
  2. I will publish internal widgets names later. For now you can use main/on-off-widget.lua script as reference.
sriramsv commented 2 years ago

@zobnin Also, I would like to hide this widget from the home screen since it doesn't do much sitting around there. will the script continue to function in the background if there was a way to hide it?

zobnin commented 2 years ago

There is methods aio:hide_widget() and aio:show_widget(). But please don't use it in the public scripts. It is not documented for a reason.