aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Molodetskikh <yalterz@gmail.com>2024-04-03 17:21:36 +0400
committerIvan Molodetskikh <yalterz@gmail.com>2024-04-03 17:21:36 +0400
commit8be938197486acb2af4ba91aae0fac57619a46c8 (patch)
treef62b489c15f81564aeea90f3db2a27510ad9c5cb
parentdc56f9885c3875a96e6b0a7ce6f6d5b4842a61d0 (diff)
downloadniri-8be938197486acb2af4ba91aae0fac57619a46c8.tar.gz
niri-8be938197486acb2af4ba91aae0fac57619a46c8.tar.bz2
niri-8be938197486acb2af4ba91aae0fac57619a46c8.zip
wiki: Add gamescope to the Xwayland page
-rw-r--r--wiki/Xwayland.md21
1 files changed, 21 insertions, 0 deletions
diff --git a/wiki/Xwayland.md b/wiki/Xwayland.md
index 3178a1a6..8f36da20 100644
--- a/wiki/Xwayland.md
+++ b/wiki/Xwayland.md
@@ -60,3 +60,24 @@ Icon=com.spotify.Client
Exec=cage -- flatpak run com.spotify.Client
Terminal=false
```
+
+## Using gamescope
+
+You can use [gamescope](https://github.com/ValveSoftware/gamescope) to run X11 games and even Steam itself.
+
+Similar to Cage, gamescope will only show a single, topmost window, so it's not very suitable to running regular apps.
+But you can run Steam in gamescope and then start some game from Steam just fine.
+
+```
+gamescope -- flatpak run com.valvesoftware.Steam
+```
+
+To run gamescope fullscreen, you can pass flags that set the necessary resolution, and a flag that starts it in fullscreen mode:
+
+```
+gamescope -W 2560 -H 1440 -w 2560 -h 1440 -f -- flatpak run com.valvesoftware.Steam
+```
+
+> [!NOTE]
+> If Steam terminates abnormally while running in gamescope, it seems that subsequent gamescope invocations will sometimes fail to start it properly.
+> 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.