feat: add blur

This commit is contained in:
2026-04-25 23:39:37 +08:00
parent 65c3a96ee2
commit 76525155da
4 changed files with 177 additions and 1 deletions

View File

@@ -308,6 +308,7 @@ hotkey-overlay {
skip-at-startup
}
// Uncomment this line to ask the clients to omit their client-side decorations if possible.
// If the client will specifically ask for CSD, the request will be honored.
// Additionally, clients will be informed that they are tiled, removing some client-side rounded corners.
@@ -675,3 +676,36 @@ binds {
}
// 隐藏窗口标题栏
prefer-no-csd
// --- NIRI BLUR START ---
// 顶层的blur配置细节调整blur的效果
blur {
passes 3
offset 3
noise 0.02
saturation 1.5
}
// 全局窗口规则。让所有普通窗口以xray的形式显示blur。xray仅渲染一次模糊版本的背景然后将其以类似“壁纸”的形式显示在窗口后面不是实时渲染模糊所以完全没有性能消耗。
window-rule {
background-effect {
xray true
blur true
}
}
// 浮动窗口禁用xray可以实时渲染模糊效果但是性能消耗高开启xray会穿过浮动窗口底下的窗口直接透视到桌面。看个人喜好选择禁用与否吧。
window-rule {
match is-floating=true
background-effect {
xray true
blur true
}
}
// fuzzle专属的layer规则
layer-rule {
match namespace="^launcher$"
geometry-corner-radius 8
background-effect {
xray false
blur true
}
}
// --- NIRI BLUR END ---