diff options
| author | sodiboo <git@sodi.boo> | 2024-05-26 23:57:34 +0200 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2024-06-28 14:00:26 +0300 |
| commit | d180e60e0584e0c43682d7aca612c366f881dd85 (patch) | |
| tree | e240f28df0053bc61c090f5d76a34e164d91467f /wiki/Configuration:-Overview.md | |
| parent | 65addefd09acef059e1415e9ebdfcbb82f86d689 (diff) | |
| download | niri-d180e60e0584e0c43682d7aca612c366f881dd85.tar.gz niri-d180e60e0584e0c43682d7aca612c366f881dd85.tar.bz2 niri-d180e60e0584e0c43682d7aca612c366f881dd85.zip | |
Implement support for `$NIRI_CONFIG` environment variable
Diffstat (limited to 'wiki/Configuration:-Overview.md')
| -rw-r--r-- | wiki/Configuration:-Overview.md | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/wiki/Configuration:-Overview.md b/wiki/Configuration:-Overview.md index f11c2a67..ce5ef9bd 100644 --- a/wiki/Configuration:-Overview.md +++ b/wiki/Configuration:-Overview.md @@ -25,6 +25,11 @@ You can run `niri validate` to parse the config and see any errors. To use a different config file path, pass it in the `--config` or `-c` argument to `niri`. +You can also set `$NIRI_CONFIG` to the path of the config file. +`--config` always takes precedence. +If `--config` or `$NIRI_CONFIG` doesn't point to a real file, the config will not be loaded. +If `$NIRI_CONFIG` is set to an empty string, it is ignored and the default config location is used instead. + ### Syntax The config is written in [KDL]. |
