From fd6c8c7790ae4e7dca1f242263f41411a1bab96e Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Wed, 24 Apr 2024 22:17:53 +0400 Subject: Implement focus-ring window rule --- wiki/Configuration:-Window-Rules.md | 27 +++++++++++++++++++-------- 1 file changed, 19 insertions(+), 8 deletions(-) (limited to 'wiki/Configuration:-Window-Rules.md') diff --git a/wiki/Configuration:-Window-Rules.md b/wiki/Configuration:-Window-Rules.md index b459f8c0..289f1b1c 100644 --- a/wiki/Configuration:-Window-Rules.md +++ b/wiki/Configuration:-Window-Rules.md @@ -45,14 +45,18 @@ window-rule { block-out-from "screencast" // block-out-from "screen-capture" - border { + focus-ring { // off on width 4 - active-color "#ffc87f" + active-color "#7fc8ff" 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" + // active-gradient from="#80c8ff" to="#bbddff" angle=45 + // inactive-gradient from="#505050" to="#808080" angle=45 relative-to="workspace-view" + } + + border { + // Same as focus-ring. } min-width 100 @@ -347,18 +351,25 @@ window-rule { } ``` -#### `border` +#### `focus-ring` and `border` Since: 0.1.6 -Override the border options for the window. +Override the focus ring and 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. +These rules have the same options as the normal focus ring and 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. +However, in addition to `off` to disable the border/focus ring, this window rule has an `on` flag that enables the border/focus ring for the window even if it was otherwise disabled. The `on` flag has precedence over the `off` flag, in case both are set. ``` +window-rule { + focus-ring { + off + width 2 + } +} + window-rule { border { on -- cgit