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
+2 -2
View File
@@ -368,7 +368,7 @@ pub enum Action {
#[knuffel(skip)]
UnsetWindowUrgent(u64),
#[knuffel(skip)]
LoadConfigFile,
LoadConfigFile(#[knuffel(argument)] Option<String>),
#[knuffel(skip)]
MruAdvance {
direction: MruDirection,
@@ -699,7 +699,7 @@ impl From<niri_ipc::Action> for Action {
niri_ipc::Action::ToggleWindowUrgent { id } => Self::ToggleWindowUrgent(id),
niri_ipc::Action::SetWindowUrgent { id } => Self::SetWindowUrgent(id),
niri_ipc::Action::UnsetWindowUrgent { id } => Self::UnsetWindowUrgent(id),
niri_ipc::Action::LoadConfigFile {} => Self::LoadConfigFile,
niri_ipc::Action::LoadConfigFile { path } => Self::LoadConfigFile(path),
}
}
}