Write out session installation steps in the README
Browse files at this commit9950672a28ac65e1bdffab6e763c824d9a7573a4Parent: cccc0681 changed file +18 -4
- README.md +18 -4
README.mdmodified+18 -4
| @@ -31,20 +31,34 @@ Every monitor has an independent set of workspaces, and there's always one empty | |||
| 31 | Niri tries to preserve the workspace arrangement as much as possible upon disconnecting and connecting monitors. | 31 | Niri tries to preserve the workspace arrangement as much as possible upon disconnecting and connecting monitors. |
| 32 | When a monitor disconnects, its workspaces will move to another monitor, but upon reconnection they will move back to the original monitor. | 32 | When a monitor disconnects, its workspaces will move to another monitor, but upon reconnection they will move back to the original monitor. |
| 33 | 33 | ||
| 34 | +## Installation | ||
| 35 | + | ||
| 36 | +The recommended way to install and run niri is as a standalone desktop session. | ||
| 37 | +To do that, put files into the correct directories according to this table. | ||
| 38 | + | ||
| 39 | +| File | Destination | | ||
| 40 | +| ---- | ----------- | | ||
| 41 | +| `target/release/niri` | `/usr/bin/` | | ||
| 42 | +| `resources/niri-session` | `/usr/bin/` | | ||
| 43 | +| `resources/niri.desktop` | `/usr/share/wayland-sessions/` | | ||
| 44 | +| `resources/niri-portals.conf` | `/usr/share/xdg-desktop-portal/` | | ||
| 45 | +| `resources/niri.service` | `/usr/lib/systemd/user/` | | ||
| 46 | + | ||
| 47 | +Doing this will make niri appear in GDM and, presumably, other display managers. | ||
| 48 | + | ||
| 34 | ## Running | 49 | ## Running |
| 35 | 50 | ||
| 36 | `cargo run --release` | 51 | `cargo run --release` |
| 37 | 52 | ||
| 38 | -Inside a desktop session, it will run in a window. | 53 | +Inside an existing desktop session, it will run in a window. |
| 39 | On a TTY, it will run natively. | 54 | On a TTY, it will run natively. |
| 40 | 55 | ||
| 41 | To exit when running on a TTY, press <kbd>Super</kbd><kbd>Shift</kbd><kbd>E</kbd>. | 56 | To exit when running on a TTY, press <kbd>Super</kbd><kbd>Shift</kbd><kbd>E</kbd>. |
| 42 | 57 | ||
| 43 | ### Session | 58 | ### Session |
| 44 | 59 | ||
| 45 | -You can install and run niri as a standalone desktop session. | 60 | +If you followed the recommended installation steps above, niri should appear in your display manager. |
| 46 | -Check the `generate-rpm` metadata at the bottom of `Cargo.toml` to see which files go where. | 61 | +Starting it from there will run niri as a desktop session. |
| 47 | -After installing, you can choose the niri session in GDM and, presumably, other display managers. | ||
| 48 | 62 | ||
| 49 | The niri session will autostart apps through the systemd xdg-autostart target. | 63 | The niri session will autostart apps through the systemd xdg-autostart target. |
| 50 | You can also autostart systemd services like [mako] by symlinking them into `$HOME/.config/systemd/user/niri.service.wants/`. | 64 | You can also autostart systemd services like [mako] by symlinking them into `$HOME/.config/systemd/user/niri.service.wants/`. |