Add load-config-file --path to load a different config (#3395)

* ipc: allow load-config to relocate the path of the config

* doc: add info about alternative configuration paths and relocating

Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com>

* Update docs/wiki/Integrating-niri.md

* Update niri-ipc/src/lib.rs

* Update src/ipc/server.rs

---------

Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com>
This commit is contained in:
ジムワルド
2026-02-06 16:22:16 +00:00
committed by GitHub
parent 189917c933
commit 549148d277
6 changed files with 35 additions and 10 deletions
+3
View File
@@ -11,6 +11,9 @@ When this file is present, niri *will not* automatically create a config at `~/.
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.
The default configuration locations can be overridden with the `NIRI_CONFIG` environment variable.
You can also change the configuration path at runtime via the niri IPC or using the command `niri msg action load-config-file --path <path-to-config.kdl>`.
You can split the niri config file into multiple files using [`include`](./Configuration:-Include.md).
### Xwayland