feat(niri): dim unfocused windows and preserve picture-in-picture opacity

This commit is contained in:
kiskaadee committed 2026-10-15 01:45:13 -05:00
1 parent 6b845b68fc
commit 8893741d36
1 file changed
+8
+8
View File
@@ -231,6 +231,13 @@ animations {
// Window rules let you adjust behavior for individual windows. // Window rules let you adjust behavior for individual windows.
// Find more information on the wiki: // Find more information on the wiki:
// https://github.com/YaLTeR/niri/wiki/Configuration:-Window-Rules // 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 // Work around WezTerm's initial configure bug
// by setting an empty default-column-width. // by setting an empty default-column-width.
window-rule { window-rule {
@@ -281,6 +288,7 @@ window-rule {
match app-id=r#"chromium|google-chrome|brave-browser"# title="^Picture in picture$" match app-id=r#"chromium|google-chrome|brave-browser"# title="^Picture in picture$"
open-floating true open-floating true
default-floating-position x=20 y=20 relative-to="bottom-right" default-floating-position x=20 y=20 relative-to="bottom-right"
opacity 1.0
} }
window-rule { window-rule {
match app-id="zoom" match app-id="zoom"