Remove All Ads from XDA

[PROJECT][ROOT]Automate Enable-Disable Of Substratum Themes

110 posts
Thanks Meter: 34
By dean [email protected]#, Senior Member on 3rd October 2019, 05:23 AM
Post Reply Email Thread

Hello guys,here is my project to enable or disable the substratum themes automatically with tasker.

There are two Profiles in project:-
  • One Theme Only,Two Theme Only

One Theme Only Should be used only when You have only one substratum theme installed

1).First comes first,You have to install a substratum theme and enable the theme in substratum theme.
2).Next you have to go to tasker and run the "Main Task" in project.
3).Then Go to profiles tab and change the time specified in the the profile "One theme only" as your needs.
4).Then you are all set.

Two Theme Only

Two theme only should be enabled if you have two themes installed.You have to disable the profile "One theme Only" if you want to use this otherwise it will cause confilcts and errors.

1).Install two substratum themes and install all of the overlays in substratum app but enable only one of them.
2).Then go to tasker and If you are using this project for first time i.e if you have not used "One theme only" profile before then you have to run the "Main Task" once.
3).Then go to task namedDisable Theme(Two theme) and go to action number 11.
There will be written in quotes like "SaisOreoTheme".
You have to change it to name of second theme you have installed.

For Example
Suppose you have two themes installed


Then,first go to substratum and install overlays for both the themes and enable only one of them.
Suppose you enabled " SaisOreoTheme".
Then go to tasker and go to action "Disable Theme(Two theme)" and go to action number 11 and change the text where is written
grep "RandomText".

Change it to the name of second theme without spaces.
If it is Mono/Art then enter the text grep " MonoArt" or if Sais Oreo theme then grep "SaisOreoTheme". Just you have to put name of second theme.

You have simply put the name of theme in these double quotes without spaces and special characters like / and ' and so on.
The Sais oreo theme contains apostrophe in Sais as follows Sai's .You have to ignore the apostrophe and put SaisOreoTheme in the action number "11".

If you installed Default Dark substratum theme then put grep " DefaultDark".If it is flux then put grep "Flux".
Keep the first letter capital.

Then just go to profile tab and change the time in the " Two theme Only" Profile as per you requirements and then you are all set to go.

And remember there is one more profile called "Update Data" which updates data in DB every hour.It is used in case any theme is uninstalled and new theme installed.

If you delete any of theme from two themes then you have to repeat the above process and that is to change the name in action number 11 and so on.

This lenghy process has to be done because some roms constain pre-installed themes in them like Aosp-Extended Rom contains pre installed themes in them.So to eliminate the cinflicts you have to do this.

Thanks to:-
@nicholaschum for substratum
@juao for tasker
and the develeopers of substartum themes.
Attached Thumbnails
Click image for larger version

Name:	Screenshot_Tasker_20191003-093040.png
Views:	22
Size:	140.0 KB
ID:	4834079  
Attached Files
File Type: xml Themer.prj.xml - [Click for QR Code] (19.4 KB, 6 views)
Post Reply Subscribe to Thread

#automate, #overlay, #substratum, #tasker, #theme

Guest Quick Reply (no urls or BBcode)
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes