add master orientation workspace rule (#406)

This commit is contained in:
thejch 2023-12-02 06:43:13 -08:00 committed by GitHub
parent 3c7847e446
commit 3b3e7e31c1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 0 deletions

View file

@ -59,3 +59,17 @@ bind=MOD,KEY,layoutmsg,swapwithmaster master
``` ```
{{< /hint >}} {{< /hint >}}
# Workspace Rules
`layoutopt` rules:
| rule | description | type |
| --- | --- | --- |
| orientation:[o] | Sets the orientation of a workspace. For available orientations, see [Config->orientation](#config) | string |
Example usage:
```ini
workspace = 2, layoutopt:orientation:top
```

View file

@ -5,6 +5,7 @@
# Workspace Rules # Workspace Rules
You can set workspace rules to achieve workspace-specific behaviors. For instance, you can define a workspace where all windows are drawn without borders or gaps. You can set workspace rules to achieve workspace-specific behaviors. For instance, you can define a workspace where all windows are drawn without borders or gaps.
For layout-specific rules, see the specific layout page. For example: [Master Layout->Workspace Rules](../Master-Layout#workspace-rules)
## Syntax ## Syntax
```ini ```ini