Move IPC into wiki
Browse files at this commit0470a833a19b4a18df4d67662a1a64264fad436cParent: 092420e3 changed files +14 -16
- README.md +1 -16
- wiki/IPC.md +12 -0
- wiki/_Sidebar.md +1 -0
README.mdmodified+1 -16
| @@ -85,7 +85,7 @@ Then, build niri with `cargo build --release`. | ||
| 85 | 85 | ### NixOS/Nix |
| 86 | 86 | |
| 87 | 87 | 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 | + | |
| 89 | 89 | If you're not on NixOS, you may need [NixGL](https://github.com/nix-community/nixGL) to run the resulting binary: |
| 90 | 90 | |
| 91 | 91 | ``` |
| @@ -131,21 +131,6 @@ In particular, it supports file choosers and monitor screencasting (e.g. to [OBS | ||
| 131 | 131 | |
| 132 | 132 | [This wiki page](https://github.com/YaLTeR/niri/wiki/Important-Software) explains how to run important software required for normal desktop use, including portals. |
| 133 | 133 | |
| 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 | - | |
| 149 | 134 | ## Configuration |
| 150 | 135 | |
| 151 | 136 | 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 @@ | ||
| 2 | 2 | * [Example systemd Setup](./Example-systemd-Setup.md) |
| 3 | 3 | * [Important Software](./Important-Software.md) |
| 4 | 4 | * [Layer‐Shell Components](./Layer%E2%80%90Shell-Components.md) |
| 5 | +* [`niri msg`](./IPC.md) | |
| 5 | 6 | * [VSCode, Chromium, WezTerm](./Application-Issues.md) |
| 6 | 7 | * [Xwayland](./Xwayland.md) |
| 7 | 8 |