This sounds absolutely perfect, and I tried something similar once. I tried going to sleep with my phone in my hand so I could turn off the alarm with minimal movement...unfortunately by the time I found my phone when the alarm went off...it wasn't in my hand.
But I don't think my phone has this option. I have an LG something with Verizon operating system thing. I don't see any tasks or anything.