fix(schema): flatten bar mouse config opts

This commit is contained in:
LGUG2Z
2025-05-26 09:52:14 -07:00
parent b4e61b079c
commit 3d373b3630
2 changed files with 51724 additions and 51887 deletions

View File

@@ -332,6 +332,7 @@ pub fn get_individual_spacing(
#[derive(Clone, Debug, Serialize, Deserialize)] #[derive(Clone, Debug, Serialize, Deserialize)]
#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] #[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))]
#[serde(untagged)]
pub enum MouseMessage { pub enum MouseMessage {
/// Send a message to the komorebi client. /// Send a message to the komorebi client.
/// By default, a batch of messages are sent in the following order: /// By default, a batch of messages are sent in the following order:
@@ -367,12 +368,10 @@ pub enum MouseMessage {
/// } /// }
/// } /// }
/// ``` /// ```
#[serde(untagged)]
Komorebi(KomorebiMouseMessage), Komorebi(KomorebiMouseMessage),
/// Execute a custom command. /// Execute a custom command.
/// CMD (%variable%), Bash ($variable) and PowerShell ($Env:variable) variables will be resolved. /// CMD (%variable%), Bash ($variable) and PowerShell ($Env:variable) variables will be resolved.
/// Example: `komorebic toggle-pause` /// Example: `komorebic toggle-pause`
#[serde(untagged)]
Command(String), Command(String),
} }

File diff suppressed because it is too large Load Diff