The things that have helped me are the little things. I find something that I have a passion for and then go at it 200%. One thing that I have noticed is that I am highly competitive. Everything turns into a pissing contest or a game. Have you tried something like that? Apply game mechanics to your life.
You are just depressed right now and you said that working out makes you feel better. Might I suggest writing a program to track your workout sessions? However you need to only allow yourself to work on it in your spare time. If its something that helps you can use it to motivate yourself, ie you aren't allowed to code till after you study/do homework and quiz yourself. Watch out for half a your work.
The final thing I will leave you with is something someone told me when I posted a thread like this, if you live your life in misery the you will only remember that misery and you will miss opportunities. It went something like that. I don't remember it too well. Well good luck and cheer up, you're not the only person that feels the same.