forge
Explore
Log in

Don't you dare go Hollow

Move IPC into wiki

Browse files at this commit

0470a833a19b4a18df4d67662a1a64264fad436cIvan MolodetskikhParent: 092420e
README.mdmodified+1 -16
@@ -85,7 +85,7 @@ Then, build niri with `cargo build --release`.
8585 ### NixOS/Nix
8686
8787 We have a community-maintained flake which provides a devshell with required dependencies. Use `nix build` to build niri, and then run `./results/bin/niri`.
88-
88+
8989 If you're not on NixOS, you may need [NixGL](https://github.com/nix-community/nixGL) to run the resulting binary:
9090
9191 ```
@@ -131,21 +131,6 @@ In particular, it supports file choosers and monitor screencasting (e.g. to [OBS
131131
132132 [This wiki page](https://github.com/YaLTeR/niri/wiki/Important-Software) explains how to run important software required for normal desktop use, including portals.
133133
134-### Xwayland
135-
136-See [the wiki page](https://github.com/YaLTeR/niri/wiki/Xwayland) to learn how to use Xwayland with niri.
137-
138-### IPC
139-
140-You can communicate with the running niri instance over an IPC socket.
141-Check `niri msg --help` for available commands.
142-
143-The `--json` flag prints the response in JSON, rather than formatted.
144-For example, `niri msg --json outputs`.
145-
146-For programmatic access, check the [niri-ipc sub-crate](./niri-ipc/) which defines the types.
147-The communication over the IPC socket happens in JSON.
148-
149134 ## Configuration
150135
151136 Niri will load configuration from `$XDG_CONFIG_HOME/.config/niri/config.kdl` or `~/.config/niri/config.kdl`.
wiki/IPC.mdadded+12 -0
@@ -0,0 +1,12 @@
1+You can communicate with the running niri instance over an IPC socket.
2+Check `niri msg --help` for available commands.
3+
4+The `--json` flag prints the response in JSON, rather than formatted.
5+For example, `niri msg --json outputs`.
6+
7+For programmatic access, check the [niri-ipc sub-crate](./niri-ipc/) which defines the types.
8+The communication over the IPC socket happens in JSON.
9+
10+> [!TIP]
11+> If you're getting parsing errors from `niri msg` after upgrading niri, make sure that you've restarted niri itself.
12+> You might be trying to run a newer `niri msg` against an older `niri` compositor.
wiki/_Sidebar.mdmodified+1 -0
@@ -2,6 +2,7 @@
22 * [Example systemd Setup](./Example-systemd-Setup.md)
33 * [Important Software](./Important-Software.md)
44 * [Layer‐Shell Components](./Layer%E2%80%90Shell-Components.md)
5+* [`niri msg`](./IPC.md)
56 * [VSCode, Chromium, WezTerm](./Application-Issues.md)
67 * [Xwayland](./Xwayland.md)
78