wiki/Xwayland: Mention adding DISPLAY to config environment
Browse files at this commita42717bcac84574a011a12e4457fe00cafc330b8Parent: 6b013a01 changed file +8 -0
- wiki/Xwayland.md +8 -0
wiki/Xwayland.mdmodified+8 -0
| @@ -15,6 +15,14 @@ env DISPLAY=:0 flatpak run com.valvesoftware.Steam | |||
| 15 | 15 | ||
| 16 | They will appear as normal windows. | 16 | They will appear as normal windows. |
| 17 | 17 | ||
| 18 | +You can also set `DISPLAY` by default for all apps by adding it to the `environment` section of the niri config: | ||
| 19 | + | ||
| 20 | +```kdl | ||
| 21 | +environment { | ||
| 22 | + DISPLAY ":0" | ||
| 23 | +} | ||
| 24 | +``` | ||
| 25 | + | ||
| 18 | ## Directly running Xwayland in rootful mode | 26 | ## Directly running Xwayland in rootful mode |
| 19 | 27 | ||
| 20 | This method involves invoking XWayland directly and running it as its own window, it also requires an extra X11 window manager running inside it. | 28 | This method involves invoking XWayland directly and running it as its own window, it also requires an extra X11 window manager running inside it. |