Skip to content

Instantly share code, notes, and snippets.

@thijzert
Last active August 29, 2015 14:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thijzert/2d3767684d4024ea22ee to your computer and use it in GitHub Desktop.
Save thijzert/2d3767684d4024ea22ee to your computer and use it in GitHub Desktop.
Tasker profile reminding me to get off Reddit and go to sleep
<TaskerData sr="" dvi="1" tv="4.6u2m">
<Profile sr="prof6" ve="2">
<id>6</id>
<mid0>9</mid0>
<!-- Execute daily at 23:45 - way past my bedtime! -->
<Time sr="con0">
<fh>23</fh>
<fm>45</fm>
<th>23</th>
<tm>45</tm>
</Time>
<!-- Only perform this task if the screen is on. -->
<State sr="con1" ve="2">
<code>123</code>
<Int sr="arg0" val="1"/>
</State>
</Profile>
<Task sr="task9">
<id>9</id>
<nme>Enough!</nme>
<pri>10</pri>
<!-- Say, "Please consider going to sleep." -->
<Action sr="act0" ve="7">
<code>559</code>
<Str sr="arg0" ve="3">Go to sleep, dipshit!</Str>
<Str sr="arg1" ve="3">default:default</Str><!-- The default voice (on my phone) is a UK female voice. -->
<Int sr="arg2" val="3"/>
<Int sr="arg3" val="5"/>
<Int sr="arg4" val="5"/>
<Int sr="arg5" val="1"/>
<Int sr="arg6" val="0"/>
<Int sr="arg7" val="0"/>
</Action>
<!-- Turn off the screen -->
<!-- Turning off the screen requires some sort of administrative privileges on Android, but no root is required. -->
<Action sr="act1" ve="7">
<code>16</code>
</Action>
</Task>
</TaskerData>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment