-
Notifications
You must be signed in to change notification settings - Fork 0
/
picom.conf
98 lines (91 loc) · 2.16 KB
/
picom.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
# 基础设置
backend = "glx";
mark-wmwin-focused = true;
mark-ovredir-focused = true;
detect-client-opacity = true;
unredir-if-possible = true;
vsync = true;
dbe = false;
detect-transient = true;
detect-client-leader = true;
invert-color-include = [ ];
glx-copy-from-front = false;
# 圆角
corner-radius = 10.0;
round-borders = 2;
rounded-corners-exclude = [
# "class_g *= 'dwm'",
"class_g *= 'fcitx'",
];
# 阴影
shadow = false;
detect-rounded-corners = false;
shadow-radius = 4;
shadow-offset-x = 0;
shadow-offset-y = 0;
shadow-opacity = 0.25;
shadow-ignore-shaped = false;
shadow-exclude = [
"_NET_WM_STATE@:32a *= '_NET_WM_STATE_HIDDEN'",
"_GTK_FRAME_EXTENTS@:c",
"override_redirect = 1 && !WM_CLASS@:s",
"name = 'Notification'",
"class_g ?= 'Dmenu'",
"class_g *= 'dwm'",
"class_g *= 'Wine'",
"name = 'Dunst'",
"class_g *= 'float'"
];
# 透明
active-opacity = 0.93;
opacity-rule = [
"100:_NET_WM_STATE@:32a *= '_NET_WM_STATE_FULLSCREEN'",
"100:_NET_WM_STATE@:32a *= '_NET_WM_STATE_STICKY'",
"100:WM_CLASS@:s *= 'vncviewer'",
"100:class_g = 'mpv'",
"100:class_g = 'obs'",
"100:class_g = 'Gimp'",
"85:!focused",
];
# 淡入淡出
fading = true;
fade-delta = 2;
fade-in-step = 0.01;
fade-out-step = 0.01;
fade-exclude = [
"class_g *= 'fcitx'",
"class_g = 'Rofi'",
"WM_CLASS@:s *= 'screenkey'",
];
# 动画
animations = true;
animation-window-mass = 0.5;
animation-dampening = 16;
animation-stiffness-in-tag = 125;
animation-for-open-window = "zoom";
animation-for-unmap-window = "squeeze";
animation-exclude = [
"class_g = 'fcitx'",
"class_g = 'flameshot'",
"class_g = 'Dunst'",
"class_g = 'Rofi'",
"WM_CLASS@:s *= 'screenkey'",
];
# 模糊
blur-method = "dual_kawase";
blur-strength = 3;
blur-kern = "3x3box";
blur-background-exclude = [
# "class_g *= 'dwm'",
"window_type = 'dock'",
"window_type = 'desktop'",
"_GTK_FRAME_EXTENTS@:c",
"name *? = 'Sunflower'",
"class_g *= 'wemeetapp'",
];
# 针对窗口类型的设置
wintypes :
{
tooltip: { fade = true; shadow = false; opacity = 0.85; focus = true; };
fullscreen: { fade = true; shadow = false; focus = true; opacity = 0.93; };
};