forge
Explore
Log in

Don't you dare go Hollow

wiki: Add gamescope to the Xwayland page

Browse files at this commit

8be938197486acb2af4ba91aae0fac57619a46c8Ivan MolodetskikhParent: dc56f98
wiki/Xwayland.mdmodified+21 -0
@@ -60,3 +60,24 @@ Icon=com.spotify.Client
60 Exec=cage -- flatpak run com.spotify.Client60 Exec=cage -- flatpak run com.spotify.Client
61 Terminal=false61 Terminal=false
62 ```62 ```
63+
64+## Using gamescope
65+
66+You can use [gamescope](https://github.com/ValveSoftware/gamescope) to run X11 games and even Steam itself.
67+
68+Similar to Cage, gamescope will only show a single, topmost window, so it's not very suitable to running regular apps.
69+But you can run Steam in gamescope and then start some game from Steam just fine.
70+
71+```
72+gamescope -- flatpak run com.valvesoftware.Steam
73+```
74+
75+To run gamescope fullscreen, you can pass flags that set the necessary resolution, and a flag that starts it in fullscreen mode:
76+
77+```
78+gamescope -W 2560 -H 1440 -w 2560 -h 1440 -f -- flatpak run com.valvesoftware.Steam
79+```
80+
81+> [!NOTE]
82+> If Steam terminates abnormally while running in gamescope, it seems that subsequent gamescope invocations will sometimes fail to start it properly.
83+> If this happens, run Steam inside a rootful Xwayland as described above, then exit it normally, and then you will be able to use gamescope again.