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:
15
.config/fuzzel/colors.ini
Executable file
15
.config/fuzzel/colors.ini
Executable file
@@ -0,0 +1,15 @@
|
|||||||
|
# Fuzzel Colors
|
||||||
|
# Generated with Matugen
|
||||||
|
|
||||||
|
[colors]
|
||||||
|
background=1c2024cc
|
||||||
|
text=dfe3e7ff
|
||||||
|
prompt=b6c9d8ff
|
||||||
|
placeholder=cdc0e9ff
|
||||||
|
input=93cdf6ff
|
||||||
|
match=cdc0e9ff
|
||||||
|
selection=b6c9d8ff
|
||||||
|
selection-text=21323eff
|
||||||
|
selection-match=342b4bff
|
||||||
|
counter=b6c9d8ff
|
||||||
|
border=b6c9d8ff
|
||||||
127
.config/fuzzel/fuzzel.ini
Executable file
127
.config/fuzzel/fuzzel.ini
Executable file
@@ -0,0 +1,127 @@
|
|||||||
|
[main]
|
||||||
|
include = "~/.config/fuzzel/colors.ini"
|
||||||
|
# output=<not set>
|
||||||
|
font=adwaita sans:size=13
|
||||||
|
# dpi-aware=auto
|
||||||
|
# use-bold=yes
|
||||||
|
# prompt="> "
|
||||||
|
# placeholder=
|
||||||
|
# icon-theme=default
|
||||||
|
# icons-enabled=yes
|
||||||
|
# hide-before-typing=no
|
||||||
|
# fields=filename,name,generic
|
||||||
|
# password-character=*
|
||||||
|
# filter-desktop=no
|
||||||
|
# match-mode=fzf
|
||||||
|
# sort-result=yes
|
||||||
|
# match-counter=no
|
||||||
|
# delayed-filter-ms=300
|
||||||
|
# delayed-filter-limit=20000
|
||||||
|
# show-actions=no
|
||||||
|
terminal=kitty -e
|
||||||
|
# launch-prefix=<not set>
|
||||||
|
# list-executables-in-path=no
|
||||||
|
|
||||||
|
# anchor=center
|
||||||
|
# x-margin=0
|
||||||
|
# y-margin=0
|
||||||
|
lines=9
|
||||||
|
# minimal-lines=no
|
||||||
|
width=35
|
||||||
|
# tabs=8
|
||||||
|
horizontal-pad=40
|
||||||
|
vertical-pad=15
|
||||||
|
inner-pad=5
|
||||||
|
|
||||||
|
# scaling-filter=box
|
||||||
|
# imagesize-ratio=0.5
|
||||||
|
|
||||||
|
# gamma-correct-blending=no
|
||||||
|
line-height=25
|
||||||
|
# letter-spacing=0
|
||||||
|
|
||||||
|
# layer=overlay
|
||||||
|
# keyboard-focus=exclusive
|
||||||
|
# exit-on-keyboard-focus-loss=yes
|
||||||
|
|
||||||
|
# cache=<not set>
|
||||||
|
|
||||||
|
# render-workers=<number of logical CPUs>
|
||||||
|
# match-workers=<number of logical CPUs>
|
||||||
|
|
||||||
|
# enable-mouse=yes
|
||||||
|
|
||||||
|
[colors]
|
||||||
|
# background=fdf6e3ff
|
||||||
|
# text=657b83ff
|
||||||
|
# prompt=586e75ff
|
||||||
|
# placeholder=93a1a1ff
|
||||||
|
# input=657b83ff
|
||||||
|
# match=cb4b16ff
|
||||||
|
# selection=eee8d5ff
|
||||||
|
# selection-text=586e75ff
|
||||||
|
# selection-match=cb4b16ff
|
||||||
|
# counter=93a1a1ff
|
||||||
|
# border=002b36ff
|
||||||
|
|
||||||
|
[border]
|
||||||
|
width=2
|
||||||
|
radius=8
|
||||||
|
|
||||||
|
[dmenu]
|
||||||
|
# mode=text # text|index
|
||||||
|
# exit-immediately-if-empty=no
|
||||||
|
|
||||||
|
[key-bindings]
|
||||||
|
prev = Control+k Up Control+w
|
||||||
|
next = Control+j Down Control+s
|
||||||
|
custom-1 = Control+Return Control+h
|
||||||
|
# cancel=Escape Control+g Control+c Control+bracketleft
|
||||||
|
execute=Return KP_Enter Control+l
|
||||||
|
# execute-or-next=Tab
|
||||||
|
# execute-input=Shift+Return Shift+KP_Enter
|
||||||
|
# cursor-left=Left Control+b
|
||||||
|
# cursor-left-word=Control+Left Mod1+b
|
||||||
|
# cursor-right=Right Control+f
|
||||||
|
# cursor-right-word=Control+Right Mod1+f
|
||||||
|
# cursor-home=Home Control+a
|
||||||
|
# cursor-end=End Control+e
|
||||||
|
# delete-line=Control+Shift+BackSpace
|
||||||
|
delete-prev=BackSpace
|
||||||
|
delete-prev-word=Mod1+BackSpace Control+BackSpace
|
||||||
|
# delete-line-backward=Control+u
|
||||||
|
# delete-next=Delete KP_Delete Control+d
|
||||||
|
# delete-next-word=Mod1+d Control+Delete Control+KP_Delete
|
||||||
|
delete-line-forward= none
|
||||||
|
# prev=Up Control+p
|
||||||
|
# prev-with-wrap=ISO_Left_Tab
|
||||||
|
# prev-page=Page_Up KP_Page_Up
|
||||||
|
# next=Down Control+n
|
||||||
|
# next-with-wrap=none
|
||||||
|
# next-page=Page_Down KP_Page_Down
|
||||||
|
# expunge=Shift+Delete
|
||||||
|
# clipboard-paste=Control+v XF86Paste
|
||||||
|
# primary-paste=Shift+Insert Shift+KP_Insert
|
||||||
|
|
||||||
|
# custom-N: *dmenu mode only*. Like execute, but with a non-zero
|
||||||
|
# exit-code; custom-1 exits with code 10, custom-2 with 11, custom-3
|
||||||
|
# with 12, and so on.
|
||||||
|
# custom-1=Mod1+1
|
||||||
|
# custom-2=Mod1+2
|
||||||
|
# custom-3=Mod1+3
|
||||||
|
# custom-4=Mod1+4
|
||||||
|
# custom-5=Mod1+5
|
||||||
|
# custom-6=Mod1+6
|
||||||
|
# custom-7=Mod1+7
|
||||||
|
# custom-8=Mod1+8
|
||||||
|
# custom-9=Mod1+9
|
||||||
|
# custom-10=Mod1+0
|
||||||
|
# custom-11=Mod1+exclam
|
||||||
|
# custom-12=Mod1+at
|
||||||
|
# custom-13=Mod1+numbersign
|
||||||
|
# custom-14=Mod1+dollar
|
||||||
|
# custom-15=Mod1+percent
|
||||||
|
# custom-16=Mod1+dead_circumflex
|
||||||
|
# custom-17=Mod1+ampersand
|
||||||
|
# custom-18=Mod1+asterix
|
||||||
|
# custom-19=Mod1+parentleft
|
||||||
@@ -2,7 +2,7 @@
|
|||||||
# Generated with Matugen
|
# Generated with Matugen
|
||||||
|
|
||||||
[colors]
|
[colors]
|
||||||
background={{colors.surface_container.default.hex_stripped}}ff
|
background={{colors.surface_container.default.hex_stripped}}cc
|
||||||
text={{colors.on_surface.default.hex_stripped}}ff
|
text={{colors.on_surface.default.hex_stripped}}ff
|
||||||
prompt={{colors.secondary.default.hex_stripped}}ff
|
prompt={{colors.secondary.default.hex_stripped}}ff
|
||||||
placeholder={{colors.tertiary.default.hex_stripped}}ff
|
placeholder={{colors.tertiary.default.hex_stripped}}ff
|
||||||
|
|||||||
@@ -308,6 +308,7 @@ hotkey-overlay {
|
|||||||
skip-at-startup
|
skip-at-startup
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Uncomment this line to ask the clients to omit their client-side decorations if possible.
|
// 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.
|
// 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.
|
// Additionally, clients will be informed that they are tiled, removing some client-side rounded corners.
|
||||||
@@ -675,3 +676,36 @@ binds {
|
|||||||
}
|
}
|
||||||
// 隐藏窗口标题栏
|
// 隐藏窗口标题栏
|
||||||
prefer-no-csd
|
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