Skip to content

Instantly share code, notes, and snippets.

@davebrny
Created December 27, 2016 23:49
Show Gist options
  • Save davebrny/dd2d1471b2520cf847f86216f56b6358 to your computer and use it in GitHub Desktop.
Save davebrny/dd2d1471b2520cf847f86216f56b6358 to your computer and use it in GitHub Desktop.
(tasker) - shake your phone to toggle the torch
<TaskerData sr="" dvi="1" tv="4.8u5m">
<Profile sr="prof561" ve="2">
<cdate>1454802995915</cdate>
<edate>1482880134621</edate>
<id>561</id>
<mid0>562</mid0>
<nme>shake torch</nme>
<pri>20</pri>
<State sr="con0" ve="2">
<code>120</code>
<Int sr="arg0" val="5"/>
</State>
<Event sr="con1" ve="2">
<code>3001</code>
<pri>0</pri>
<Int sr="arg0" val="1"/>
<Int sr="arg1" val="1"/>
<Int sr="arg2" val="2"/>
</Event>
<State sr="con2" ve="2">
<code>125</code>
<pin>true</pin>
</State>
</Profile>
<Task sr="task562">
<cdate>1482880127173</cdate>
<edate>1482880134621</edate>
<id>562</id>
<Action sr="act0" ve="7">
<code>511</code>
<Int sr="arg0" val="2"/>
</Action>
</Task>
</TaskerData>

shake torch

  • turn your phone to the right so its in landscape mode
  • tasker says the shake action is "up-down" but its more of a hard jolt downwards (just once) that activates it

the screen has to be on for this to work and the proximity sensor has to be inactive

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment