From c4746f986479ecc64dc59e36f77e471990423fe9 Mon Sep 17 00:00:00 2001 From: Vassiliy Yegorov Date: Sun, 14 Jun 2026 09:22:39 +0700 Subject: [PATCH] feat(proto): GetConfig/SetConfig commands and ConfigChanged event --- crates/spacesh-proto/src/message.rs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/crates/spacesh-proto/src/message.rs b/crates/spacesh-proto/src/message.rs index ed8015a..4e23e72 100644 --- a/crates/spacesh-proto/src/message.rs +++ b/crates/spacesh-proto/src/message.rs @@ -132,6 +132,19 @@ pub enum Cmd { Health, Status, Shutdown, + GetConfig, + SetConfig { + #[serde(default, skip_serializing_if = "Option::is_none")] + default_shell: Option, + #[serde(default, skip_serializing_if = "Option::is_none")] + font_family: Option, + #[serde(default, skip_serializing_if = "Option::is_none")] + font_size: Option, + #[serde(default, skip_serializing_if = "Option::is_none")] + theme: Option, + #[serde(default, skip_serializing_if = "Option::is_none")] + accent: Option, + }, } /// Daemon → subscribers push events. The active subset for M0+M1. @@ -150,6 +163,7 @@ pub enum Evt { State { surface_id: SurfaceId, state: SurfaceState }, Event { record: EventRecord }, EventsRead { ids: Vec }, + ConfigChanged { config: crate::config_view::ConfigView }, } #[cfg(test)]