wiki: Add Integrating niri page
Browse files at this commit7115b214b23d2b316aab6f1017ef9701eb37a2b5Parent: b02c5d24 changed files +48 -0
- docs/mkdocs.yaml +1 -0
- docs/wiki/Integrating-niri.md +44 -0
- docs/wiki/Packaging-niri.md +2 -0
- docs/wiki/_Sidebar.md +1 -0
docs/mkdocs.yamlmodified+1 -0
| @@ -85,6 +85,7 @@ nav: | |||
| 85 | - Xwayland: Xwayland.md | 85 | - Xwayland: Xwayland.md |
| 86 | - Gestures: Gestures.md | 86 | - Gestures: Gestures.md |
| 87 | - Packaging niri: Packaging-niri.md | 87 | - Packaging niri: Packaging-niri.md |
| 88 | + - Integrating niri: Integrating-niri.md | ||
| 88 | - Accessibility: Accessibility.md | 89 | - Accessibility: Accessibility.md |
| 89 | - FAQ: FAQ.md | 90 | - FAQ: FAQ.md |
| 90 | - Configuration: | 91 | - Configuration: |
docs/wiki/Integrating-niri.mdadded+44 -0
| @@ -0,0 +1,44 @@ | |||
| 1 | +This page contains various bits of information helpful for integrating niri in a distribution. | ||
| 2 | +First, for creating a niri package, see the [Packaging](./Packaging-niri.md) page. | ||
| 3 | + | ||
| 4 | +### Configuration | ||
| 5 | + | ||
| 6 | +Niri will load configuration from `$XDG_CONFIG_HOME/niri/config.kdl` or `~/.config/niri/config.kdl`, falling back to `/etc/niri/config.kdl`. | ||
| 7 | +If both of these files are missing, niri will create `$XDG_CONFIG_HOME/niri/config.kdl` with the contents of [the default configuration file](https://github.com/YaLTeR/niri/blob/main/resources/default-config.kdl), which are embedded into the niri binary at build time. | ||
| 8 | + | ||
| 9 | +This means that you can customize your distribution defaults by creating `/etc/niri/config.kdl`. | ||
| 10 | +When this file is present, niri *will not* automatically create a config at `~/.config/niri/`, so you'll need to direct your users how to do it themselves. | ||
| 11 | + | ||
| 12 | +Keep in mind that we update the default config in new releases, so if you have a custom `/etc/niri/config.kdl`, you likely want to inspect and apply the relevant changes too. | ||
| 13 | + | ||
| 14 | +Splitting the niri config file into multiple files, or includes, are not supported yet. | ||
| 15 | + | ||
| 16 | +### Xwayland | ||
| 17 | + | ||
| 18 | +Xwayland is required for running X11 apps and games, and also the Orca screen reader. | ||
| 19 | + | ||
| 20 | +<sup>Since: next release</sup> Niri integrates with [xwayland-satellite](https://github.com/Supreeeme/xwayland-satellite) out of the box. | ||
| 21 | +The integration requires xwayland-satellite >= 0.7 available in `$PATH`. | ||
| 22 | +Please consider making niri depend on (or at least recommend) the xwayland-satellite package. | ||
| 23 | + | ||
| 24 | +You can change the path where niri looks for xwayland-satellite using the [`xwayland-satellite` top-level option](./Configuration:-Miscellaneous.md#xwayland-satellite). | ||
| 25 | + | ||
| 26 | +### Keyboard layout | ||
| 27 | + | ||
| 28 | +<sup>Since: next release</sup> By default (unless [manually configured](./Configuration:-Input.md#layout) otherwise), niri reads keyboard layout settings from systemd-localed at `org.freedesktop.locale1` over D-Bus. | ||
| 29 | +Make sure your system installer sets the keyboard layout via systemd-localed, and niri should pick it up. | ||
| 30 | + | ||
| 31 | +### Autostart | ||
| 32 | + | ||
| 33 | +Niri works with the normal systemd autostart. | ||
| 34 | +The default [niri.service](https://github.com/YaLTeR/niri/blob/main/resources/niri.service) brings up `graphical-session.target` as well as `xdg-desktop-autostart.target`. | ||
| 35 | + | ||
| 36 | +To make a program run at niri startup without editing the niri config, you can either link its .desktop to `~/.config/autostart/`, or use a .service file with `WantedBy=graphical-session.target`. | ||
| 37 | +See the [example systemd setup](./Example-systemd-Setup.md) page for some examples. | ||
| 38 | + | ||
| 39 | +If this is inconvenient, you can also add [`spawn-at-startup`](./Configuration:-Miscellaneous.md#spawn-at-startup) lines in the niri config. | ||
| 40 | + | ||
| 41 | +### Screen readers | ||
| 42 | + | ||
| 43 | +Niri works with the [Orca](https://orca.gnome.org) screen reader. | ||
| 44 | +Please see the [Accessibility](./Accessibility.md) page for details and advice for accessibility-focused distributions. | ||
docs/wiki/Packaging-niri.mdmodified+2 -0
| @@ -28,6 +28,8 @@ To do that, put files into the correct directories according to this table. | |||
| 28 | 28 | ||
| 29 | Doing this will make niri appear in GDM and other display managers. | 29 | Doing this will make niri appear in GDM and other display managers. |
| 30 | 30 | ||
| 31 | +See the [Integrating niri](./Integrating-niri.md) page for further information on distribution integration. | ||
| 32 | + | ||
| 31 | ### Running tests | 33 | ### Running tests |
| 32 | 34 | ||
| 33 | A bulk of our tests spawn niri compositor instances and test Wayland clients. | 35 | A bulk of our tests spawn niri compositor instances and test Wayland clients. |
docs/wiki/_Sidebar.mdmodified+1 -0
| @@ -14,6 +14,7 @@ | |||
| 14 | * [Xwayland](./Xwayland.md) | 14 | * [Xwayland](./Xwayland.md) |
| 15 | * [Gestures](./Gestures.md) | 15 | * [Gestures](./Gestures.md) |
| 16 | * [Packaging niri](./Packaging-niri.md) | 16 | * [Packaging niri](./Packaging-niri.md) |
| 17 | +* [Integrating niri](./Integrating-niri.md) | ||
| 17 | * [Accessibility](./Accessibility.md) | 18 | * [Accessibility](./Accessibility.md) |
| 18 | * [FAQ](./FAQ.md) | 19 | * [FAQ](./FAQ.md) |
| 19 | 20 | ||