From 8893741d366ff034976b3e039200d2585f22a88d Mon Sep 17 00:00:00 2001 From: kiskaadee Date: Thu, 15 Oct 2026 01:42:58 -0500 Subject: [PATCH] feat(niri): dim unfocused windows and preserve picture-in-picture opacity --- home/config/niri/config.kdl | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/home/config/niri/config.kdl b/home/config/niri/config.kdl index 605ae6a..7a48f28 100644 --- a/home/config/niri/config.kdl +++ b/home/config/niri/config.kdl @@ -231,6 +231,13 @@ animations { // Window rules let you adjust behavior for individual windows. // Find more information on the wiki: // https://github.com/YaLTeR/niri/wiki/Configuration:-Window-Rules + +// Dim unfocused windows slightly for depth and focus awareness +window-rule { + match is-focused=false + opacity 0.95 +} + // Work around WezTerm's initial configure bug // by setting an empty default-column-width. window-rule { @@ -281,6 +288,7 @@ window-rule { match app-id=r#"chromium|google-chrome|brave-browser"# title="^Picture in picture$" open-floating true default-floating-position x=20 y=20 relative-to="bottom-right" + opacity 1.0 } window-rule { match app-id="zoom"