forge
Explore
Log in

Don't you dare go Hollow

wiki/Xwayland: Clarify xwayland-satellite

Browse files at this commit

0224452cef2af8c754b32a119998df8a4730eb42Ivan MolodetskikhParent: c17d4dc
wiki/Xwayland.mdmodified+11 -5
@@ -3,21 +3,27 @@ However, there are multiple solutions to running X11 apps in niri.
3 3
4 ## Using xwayland-satellite4 ## Using xwayland-satellite
5 5
6-[xwayland-satellite] is a new project that essentially implements rootless Xwayland in a separate application, without the host compositor's involvement.6+[xwayland-satellite] implements rootless Xwayland in a separate application, without the host compositor's involvement.
7+It makes X11 windows appear as normal windows, just like a native Xwayland integration.
7 While it is still somewhat experimental, it handles a lot of applications correctly, like Steam, games and Discord.8 While it is still somewhat experimental, it handles a lot of applications correctly, like Steam, games and Discord.
8 9
9-Build it according to instructions from its README, then run the `xwayland-satellite` binary.10+Install it from your package manager, or build it according to instructions from its README, then run the `xwayland-satellite` binary.
10-Now you can start X11 applications on the X11 DISPLAY that it provides:11+Look for a log message like: `Connected to Xwayland on :0`.
12+Now you can start X11 applications on this X11 DISPLAY:
11 13
12 ```14 ```
13 env DISPLAY=:0 flatpak run com.valvesoftware.Steam15 env DISPLAY=:0 flatpak run com.valvesoftware.Steam
14 ```16 ```
15 17
16-They will appear as normal windows.18+![xwayland-satellite running Steam and Half-Life.](https://github.com/user-attachments/assets/57db8f96-40d4-4621-a389-373c169349a4)
17 19
18-You can also set `DISPLAY` by default for all apps by adding it to the `environment` section of the niri config:20+You can also automatically run it at startup, and set `DISPLAY` by default for all apps by adding it to the `environment` section of the niri config:
19 21
20 ```kdl22 ```kdl
23+spawn-at-startup "xwayland-satellite"
24+// Or, if you built it by hand:
25+// spawn-at-startup "~/path/to/code/target/release/xwayland-satellite"
26+
21 environment {27 environment {
22 DISPLAY ":0"28 DISPLAY ":0"
23 }29 }