forge
Explore
Log in

Don't you dare go Hollow

Write out session installation steps in the README

Browse files at this commit

9950672a28ac65e1bdffab6e763c824d9a7573a4Ivan MolodetskikhParent: cccc068
README.mdmodified+18 -4
@@ -31,20 +31,34 @@ Every monitor has an independent set of workspaces, and there's always one empty
3131 Niri tries to preserve the workspace arrangement as much as possible upon disconnecting and connecting monitors.
3232 When a monitor disconnects, its workspaces will move to another monitor, but upon reconnection they will move back to the original monitor.
3333
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+
3449 ## Running
3550
3651 `cargo run --release`
3752
38-Inside a desktop session, it will run in a window.
53+Inside an existing desktop session, it will run in a window.
3954 On a TTY, it will run natively.
4055
4156 To exit when running on a TTY, press <kbd>Super</kbd><kbd>Shift</kbd><kbd>E</kbd>.
4257
4358 ### Session
4459
45-You can install and run niri as a standalone desktop session.
46-Check the `generate-rpm` metadata at the bottom of `Cargo.toml` to see which files go where.
47-After installing, you can choose the niri session in GDM and, presumably, other display managers.
60+If you followed the recommended installation steps above, niri should appear in your display manager.
61+Starting it from there will run niri as a desktop session.
4862
4963 The niri session will autostart apps through the systemd xdg-autostart target.
5064 You can also autostart systemd services like [mako] by symlinking them into `$HOME/.config/systemd/user/niri.service.wants/`.