Yes, fit perfect for this use. I used to hang in garage on a 2x4 with 14 other Ryobis’.
I doubt it would work for Ridgid, as the battery clips in differently than the Ryobi.
I have not seen these in a Home Depot store for a while, but they are available to order online from HD and other sites (where I just purchased a few more).
HD seems to receive new inventory every 2-6 weeks for these. They always sell out within a couple hours of posting so the best you can hope for is to sign up for an alert and check your emails early in the morning. You need to purchase the items as soon as possible or you're out of luck for another 2-6 weeks.
Go to the HomeDepot Website and order the Ryobi One+ Took Lanyard Pack, (2 Per Pack).
No, it can't hold my 18V Mower