Skip to content

Commit

Permalink
fix(config): ensure tiling with layout rules
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
LGUG2Z committed Apr 29, 2024
1 parent e363a49 commit 95990d6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions komorebi/src/workspace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,8 @@ impl Workspace {
}

self.set_layout_rules(all_rules);

self.tile = true;
}

if let Some(layout_rules) = &config.custom_layout_rules {
Expand All @@ -139,6 +141,8 @@ impl Workspace {
let rule = CustomLayout::from_path(pathbuf)?;
rules.push((*count, Layout::Custom(rule)));
}

self.tile = true;
}

Ok(())
Expand Down

0 comments on commit 95990d6

Please sign in to comment.