aboutsummaryrefslogtreecommitdiff
path: root/resources
diff options
context:
space:
mode:
authorIvan Molodetskikh <yalterz@gmail.com>2024-03-23 16:16:52 +0400
committerIvan Molodetskikh <yalterz@gmail.com>2024-03-23 16:16:52 +0400
commit6ec65bc0d6f6141a3951c076b693b6ce430c503a (patch)
tree3c601ca9310357935f1c95066797571fcc5a797d /resources
parentd65446421fb989c74329b053fd3ccc387403fdc5 (diff)
downloadniri-6ec65bc0d6f6141a3951c076b693b6ce430c503a.tar.gz
niri-6ec65bc0d6f6141a3951c076b693b6ce430c503a.tar.bz2
niri-6ec65bc0d6f6141a3951c076b693b6ce430c503a.zip
Add is-focused window rule matcher
Diffstat (limited to 'resources')
-rw-r--r--resources/default-config.kdl7
1 files changed, 7 insertions, 0 deletions
diff --git a/resources/default-config.kdl b/resources/default-config.kdl
index 55bff24d..3409c110 100644
--- a/resources/default-config.kdl
+++ b/resources/default-config.kdl
@@ -368,6 +368,13 @@ animations {
// (same as when it uses the active border color).
match is-active=true
+ // Another way to match is by whether the window has keyboard focus.
+ // This is different from is-active: every workspace on a monitor
+ // has one active window, but only one window can have a keyboard
+ // focus. Also, the keyboard focus can go to a layer-shell surface,
+ // then no window will have the keyboard focus.
+ match is-focused=true
+
// Here are the properties that you can set on a window rule.
// These properties apply once, when a window first opens.