If you are going to a rehab/nursing home, shop NOW, go tour, make sure it has what you need including wi-fi for patients if you are taking a laptop. I got lucky, one of the office people snuck into my room and gave me her user id and password or I would have gone crazy!
Have people come visit. I got lucky, had a gorgeous PT guy, KayKay and her daughter couldn't get there fast enough to visit and when he walked by, they RAN to my door for a look.
Pack LOOSE comfy clothes, shorts are the best, those places are hot houses for the oldies anyway, or baggy sweats. Going home is good/bad, you will have to fix your own meals, carry them to wherever you eat, etc. Set up a cooler next to your chair for drinks and cold stuff. The other problem is not much room to walk around safely especially in bad weather.
YES get that commode seat, I still won't give mine up, gonna replace the toilet with a taller one, hate those short things. Didn't know about this one, got home, nursing home had sent one with me, and nobody to install it. Called my brother, the handyman who said, and I quote "just sit on the floor and install it, easy as pie to put in". I still haven't forgiven him for that one. Yes, he had a broken foot at the time, but was mobile and perfectly able to sit on said floor. He also wouldn't come visit me as it was so hard getting in and out of buildings with a wheel chair. Um, hello, nursing home, made just for wheelchairs and stretchers!! Lesson learned? Won't be counting on him for anything any more.
Get out of bed and stay out (I didn't and I paid for it) Demand a chair for your room (I didn't), walk as much as you can as many times as you can, it does get easier, and yes, it hurts like nothing you have ever felt, but so important since you are doing them so close together, boy are you brave!!
Strengthen your legs muscles now. Ride a recumbent bike if walking is too hard, this will help tons in recovery.
My other one will eventually have to be replaced but not until I am unable to stand the pain any longer, which is what drove the decision in my right leg. I am hoping that won't happen for years, but it is working on being bone on bone. I have cartilage that flips over from time to time and I go from totally fine to unable to walk and never know when that is going to happen so I am never far from a cane. I am crippled until the flipped piece is ground off, then suddenly fine again until the next time. The doc says it will stop doing that eventually when I don't have any more to grind down and then there will be only one option. sigh.
Best of luck, let us know how you do!