Toggle global switch when opening an app

Hello All!

I have KLWP running on my Android Head unit and the problem I am running into is that the settings and some other apps have transparent backgrounds, so when they are opened you can see my live wallpaper and makes the apps hard to read. My current work around was to create a global switch, add icons to these apps to the top of my home screen with a touch to toggle the global, and have a blank background that will be visible when global is toggled on. However, to close the blank background, I had to add a manual (home) touch icon to toggle the global off.

My question is, is there a way, even if it is with tasker to toggle this global switch on when a specific app opens, and then off when navigating back to the homescreen?

My current KLWP

Try using Flows with an “On load complete” trigger and see if that will work for you.

On load complete is done every time a preset is loaded for the first time, so when Kustom starts, which is generally when:

  • A reboot occurs
  • You change a preset and load it for the first time
  • You edit a preset and press save
1 Like

Thank you for the response! Unfortunately because this is on an android head unit the newest versions of klwp do not work. I downloaded an older version to make it work, but it does not have the flow functionality. Might there be another work around with kode?

I do use flow on my phone to refresh my calendar and it is very handy!

You could try to get it to work with these two tips/topics. I’m not sure how, because I haven’t tried it, but it might set you in the right direction.

[Help] Detect when a certain app launches : r/tasker

How do I bring a tasker variable into KLWP? : r/kustom

1 Like

This definitely takes me most of the way there thank you! I have used both tasker and KLWP independently, however have not yet pulled tasker into KLWP. I added an app profile and found the KLWP plugin task, just trying to figure out the tasker string and Kustom variable I should be using. All I need is for KLWP to read that a certain app is currently running, then use that confirmation to toggle my global switch that has already been set up. Im trying to do some more research to find out, but if you have any ideas it would be appreciated! Thanks again!