aboutsummaryrefslogtreecommitdiff
path: root/resources
diff options
context:
space:
mode:
authorIvan Molodetskikh <yalterz@gmail.com>2024-03-24 08:30:26 +0400
committerIvan Molodetskikh <yalterz@gmail.com>2024-03-24 08:30:26 +0400
commit8b4a9d68e0ba8093e88d20f3a003f78ef27cac0e (patch)
treeb09c2b2d0237f36b36d01d6fc47657d8497d1c61 /resources
parenta16a0f0e52d6df8abd602baa15cee44e0656d790 (diff)
downloadniri-8b4a9d68e0ba8093e88d20f3a003f78ef27cac0e.tar.gz
niri-8b4a9d68e0ba8093e88d20f3a003f78ef27cac0e.tar.bz2
niri-8b4a9d68e0ba8093e88d20f3a003f78ef27cac0e.zip
Implement opacity 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 485ab649..0878f213 100644
--- a/resources/default-config.kdl
+++ b/resources/default-config.kdl
@@ -414,6 +414,16 @@ animations {
// 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
+
+ // Set the opacity of the window.
+ // This is applied on top of the window's own opacity, so semitransparent
+ // windows will become even more transparent.
+ // Opacity is applied to every surface of the window individually, so
+ // subsurfaces and pop-up menus will show window content behind them.
+ // Also, focus ring and border with background will show through
+ // semitransparent windows (see prefer-no-csd and
+ // the draw-border-with-background property above).
+ opacity 0.5
}
// Here's a useful example. Work around WezTerm's initial configure bug