good! the fact you are doing that means you have a will to live! somewhere down, deep inside your mind, there is a tiny part of you that wants to live. thats a good start. you have *some* will live, and that means you have some reason to live.
now you need to try and talk to a friend or a family member or someone on here or a therapist, and try to sort your head out, maybe get some medical treatment if you need it. until then, try to do something like reading, watching a film, talking on the phone, gaming etc to take your mind off of wanting to die.