From 95990d682b917a9536ea3bb22b22993d8699e05a Mon Sep 17 00:00:00 2001 From: LGUG2Z Date: Mon, 29 Apr 2024 08:06:35 -0700 Subject: [PATCH] fix(config): ensure tiling with layout rules This commit ensures that tiling on a workspace will be enabled if a user specifies layout rules or custom layout rules without providing an option to the "layout" key. --- komorebi/src/workspace.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/komorebi/src/workspace.rs b/komorebi/src/workspace.rs index 6dea8247..6f5d64dc 100644 --- a/komorebi/src/workspace.rs +++ b/komorebi/src/workspace.rs @@ -131,6 +131,8 @@ impl Workspace { } self.set_layout_rules(all_rules); + + self.tile = true; } if let Some(layout_rules) = &config.custom_layout_rules { @@ -139,6 +141,8 @@ impl Workspace { let rule = CustomLayout::from_path(pathbuf)?; rules.push((*count, Layout::Custom(rule))); } + + self.tile = true; } Ok(())