From d7ae6dcb6761af049a443c2c1e42b15970108f52 Mon Sep 17 00:00:00 2001 From: Lysander Treumann Date: Sat, 31 Jan 2026 02:47:03 +0100 Subject: [PATCH] Added "action on typing" to workspaces configuration. --- cosmic-comp-config/src/workspace.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/cosmic-comp-config/src/workspace.rs b/cosmic-comp-config/src/workspace.rs index 31caba7a..7ed73334 100644 --- a/cosmic-comp-config/src/workspace.rs +++ b/cosmic-comp-config/src/workspace.rs @@ -9,6 +9,8 @@ pub struct WorkspaceConfig { pub workspace_mode: WorkspaceMode, #[serde(default)] pub workspace_layout: WorkspaceLayout, + #[serde(default)] + pub action_on_typing: Action, } impl Default for WorkspaceConfig { @@ -16,6 +18,7 @@ impl Default for WorkspaceConfig { Self { workspace_mode: WorkspaceMode::OutputBound, workspace_layout: WorkspaceLayout::Vertical, + action_on_typing: Action::default(), } } } @@ -33,6 +36,14 @@ pub enum WorkspaceLayout { Horizontal, } +#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Serialize, Deserialize)] +pub enum Action { + #[default] + None, + OpenLauncher, + OpenApplications, +} + #[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)] pub struct OutputMatch { pub name: String,