Lightning LauncherTips&Tricks
Unlocker for Lightning Launcher
This quick Tutorial will show you how to do a simple Unlocker for Lightning Launcher.
Here is the Video from the result:
In this case i use Desktop as Container, all can be done also in a panel.
- Place all your items you need (Text, Widgets etc.) .
Can be done at last too. - Place an item which should be your Unlocker. Do not pin this item.
- Start Script Editor. Create new Script and name it.
Enter Scriptcode:var ct=LL.getEvent().getContainer();
ct.setPosition(0,0);
LL.unlock();We need setPosition(0,0) because we want the container flips back to original position.
If we do not, the Container stays moved if unlock succeeds.
And unlock() to unlock because it’s not a unlocker-item which is provided by LL itself. - Goto Scroll/zoom Options of your Container
Uncheck Snap to pages. - Add 2 StopPoints on your Container. Should be on other pages than the “unlocker”.
- Set Properties of the StopPoints. Script for Reached Event should be the one we have created in Step 3.
- Set this Desktop as Lockscreen
- Done.
You can do this vertical too. Script is for all directions.