Could you please guide me on rulings for placement of bed in Islam keeping in mind all aspects

Please see this:

https://www.al-islam.org/sunan-nabi-allamah-sayyid-muhammad-husayn-tabatabai/chapter-7-adab-sleeping-and-bedside