mirror of
https://github.com/niri-wm/niri.git
synced 2026-06-22 02:01:55 +07:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user