I'd like to use Tasker to switch my launcher: when I'm at work I need certain apps to be easily available, while when I'm home I want Nova launcher with all my apps. How can I do that? Thanks.
Answer
This is a bit dirty solution, but gets the job done.
Note: Tested the solution on Android 4.2.1 having default Android launcher and Smart Launcher Pro.
Requirements:
- Device should be rooted
I'm assuming:
Your timing for work (i.e. entering and leaving the office) are more or less same for working days. Let's say the timing is 10:OO AM - 06:00 PM, and the rest is for home or other things.
You're using your device's default launcher and Nova Launcher.
Instructions for Tasker:
Make Nova Launcher as your default launcher by using step 2 and 3 from this answer by Josh Holland.
Launch Tasker.
Create a Profile under Time with parameters as:
- From:
10:00
- To:
18:00
- From:
Create a task with action Code → Run Shell, and fill these details:
- Command:
pm disable com.teslacoilsw.launcher
- Timeout (Seconds):
10
- Check Use Root, leave other things untouched and save the action
- Command:
Under the same task create a new action App → Launch App. Under the App Selection window tap All (at the bottom) and choose the default launcher. Save this action with other things untouched.
Create another profile under Time with parameters:
- From:
18:00
- To:
10:00
- From:
Repeat step 4 with details:
- Command:
pm enable com.teslacoilsw.launcher
- Timeout (Seconds):
10
- Check Use Root, leave other things untouched and save the action
- Command:
Repeat step 5 and choose Nova Launcher to launch instead of default one.
Enable both profiles and the Tasker.
You're good to go. Your default launcher will be activated for work time and Nova Launcher will activate during home or leisure activity.
Note that you can change the timings, or the default profile as well. E.g. If you don't want to limit the answer with timings or your timings are not strict but irregular than you may try a profile like State → Net State → Wifi Connected → details of Wifi.
No comments:
Post a Comment