mirror of
https://github.com/zhenyan121/dotfiles.git
synced 2026-06-18 00:17:02 +08:00
feat: add blur
This commit is contained in:
@@ -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 ---
|
||||
|
||||
Reference in New Issue
Block a user