Implement border window rule

This commit is contained in:
Ivan Molodetskikh
2024-04-24 21:49:07 +04:00
parent e261b641ed
commit 3e598c565e
8 changed files with 203 additions and 36 deletions
+30
View File
@@ -45,6 +45,16 @@ window-rule {
block-out-from "screencast"
// block-out-from "screen-capture"
border {
// off
on
width 4
active-color "#ffc87f"
inactive-color "#505050"
active-gradient from="#ffbb66" to="#ffc880" angle=45 relative-to="workspace-view"
inactive-gradient from="#505050" to="#808080" angle=45 relative-to="workspace-view"
}
min-width 100
max-width 200
min-height 300
@@ -337,6 +347,26 @@ window-rule {
}
```
#### `border`
<sup>Since: 0.1.6</sup>
Override the border options for the window.
This rule has the same options as the normal border config in the [layout](./Configuration:-Layout.md) section, so check the documentation there.
However, in addition to `off` to disable the border, this window rule has an `on` flag that enables the border for the window even if the border is otherwise disabled.
The `on` flag has precedence over the `off` flag, in case both are set.
```
window-rule {
border {
on
width 8
}
}
```
#### Size Overrides
You can amend the window's minimum and maximum size in logical pixels.