I found that when unemployed or when your employment has been threatened that stress and fear are you number 1 enemy. You have to do something with that stress or you will not be psychologically capable of meeting the challenges you face. For myself I found getting up early, getting sunlight, and working out was critical to relieving that stress. Don't get a membership a a gym. You don't need it. Walk, run, or lift dumb weights.
After that I had to create a specific plan to get myself into that new job or out of the toxic environment. The end goal was to get to a place that would provide the funds I needed for living. How to get there wasn't completely clear at the time. I would create a daily plan of what I was going to do and work that plan. That was my job, to work the plan. Plan items where like, get resume together, call recruiters, work the phone, scan the job sites, etc...
There is a job market. You need to know what skills are needed in the market and work your resume to address market needs. If you have to update your skills get access to the best textbooks and study them page by page until you have mastered the information in them. Build working prototypes. Open source your stuff if you think they are good. Notice I said "get access" not buy. Libraries and B&N are great. Take notes.
Don't stop. Never stop. Don't watch TV or waste time on stupid entertainment. Live with only a few goals in mind.