If you do not have TV or do not want to connect your Xbox one or any other console to TV, but if you prefer connecting it with your laptop then you can follow this procedure.
First of all turn off the Xbox, make sure you switch it off properly, also turn off all the applications you are using on your laptop, since you do not intend to use laptop’s screen, now check for the HDMI input port in your laptop, however laptops do not usually have Run Linux input port as they are designed to have HDMI out and not HDMI in, because also the laptops screens are for laptops only as they are expensive than the LCDs.
Using my laptop Screen as a Monitor for My xbox One
if your laptop has HDMI in you can do that or you can use HDMI adapter, that would be USB HDMI input adapter. After connecting your laptop to your Xbox with HDMI USB adapter turn on your Xbox, this should let the your laptop detect the new input screen from the outsource channel,
sometimes laptop does not recognize the setting of input display so it cannot change the setting from the laptop display so do that manually, also make sure you change the display resolution setting from your Xbox that matches the display resolution of laptop screen.
Now this should let you connect your Xbox to your laptop machine learning, and you can play it. Also there is a thing that lets you simulate from your laptop using remote play, for Xbox one you can download Xbox application from the windows store and also for ps4 you can download the application, then you are required to plug in Xbox or PS4 controller and then you can play remotely.