aboutsummaryrefslogtreecommitdiff
path: root/resources
diff options
context:
space:
mode:
authorIvan Molodetskikh <yalterz@gmail.com>2024-03-19 18:22:25 +0400
committerIvan Molodetskikh <yalterz@gmail.com>2024-03-19 18:29:13 +0400
commitdb49deb7fd2fbe805ceec060aa4dec65009ad7a7 (patch)
treeb8f85d4aee4d366643626e97b7f37fa49d93b75b /resources
parentc61361de3ca4484387f39b067eadc612908560eb (diff)
downloadniri-db49deb7fd2fbe805ceec060aa4dec65009ad7a7.tar.gz
niri-db49deb7fd2fbe805ceec060aa4dec65009ad7a7.tar.bz2
niri-db49deb7fd2fbe805ceec060aa4dec65009ad7a7.zip
Implement draw-border-with-background window rule
Diffstat (limited to 'resources')
-rw-r--r--resources/default-config.kdl10
1 files changed, 10 insertions, 0 deletions
diff --git a/resources/default-config.kdl b/resources/default-config.kdl
index 014135fa..1b6cddf2 100644
--- a/resources/default-config.kdl
+++ b/resources/default-config.kdl
@@ -123,6 +123,9 @@ layout {
// If you don't like that, you should uncomment `prefer-no-csd` below.
// Niri will draw focus ring and border *around* windows that agree to omit their
// client-side decorations.
+ //
+ // Alternatively, you can override it with a window rule called
+ // `draw-border-with-background`.
// You can change how the focus ring looks.
focus-ring {
@@ -393,6 +396,13 @@ animations {
// if it is equal to min-height. Either set this equal to min-height,
// or change the window height manually for this to apply.
max-height 300
+
+ // Override whether the border and the focus ring draw with a background.
+ // Set this to `true` to draw them as solid colored rectangles even for
+ // windows which agreed to omit their client-side decorations.
+ // Set this to `false` to draw them as borders around the window even for
+ // windows which use client-side decorations.
+ draw-border-with-background false
}
// Here's a useful example. Work around WezTerm's initial configure bug