Skip to content

Instantly share code, notes, and snippets.

@thijzert thijzert/Sleep.tasker.xml
Last active Aug 29, 2015

What would you like to do?
Tasker profile reminding me to get off Reddit and go to sleep
<TaskerData sr="" dvi="1" tv="4.6u2m">
<Profile sr="prof6" ve="2">
<!-- Execute daily at 23:45 - way past my bedtime! -->
<Time sr="con0">
<!-- Only perform this task if the screen is on. -->
<State sr="con1" ve="2">
<Int sr="arg0" val="1"/>
<Task sr="task9">
<!-- Say, "Please consider going to sleep." -->
<Action sr="act0" ve="7">
<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"/>
<!-- 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">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.