I went through the depression not once but twice (when I originally broke my collarbone and 2 years later when I had surgery to repair it). The first time I didn't stay away from exercising all that long. Within two weeks ( as soon as I could manage wearing a bra somehow) I was in a gym and using a spin bike to keep my legs moving. After the surgery, the doctor forbaded any activity except walking or hiking so I stuck to that for 4 months. There are ways to keep moving, you don't have to ride a bike.

I will be having my colon surgery this coming month and am told no exercise at all for 4 weeks. That sucks! But I do have a million hobbies to occupy my time. Right now really into beading. Find something to d0.