Skip to content

Commit 80f8d93

Browse files
committed
Don't use geometry for resize
1 parent c1ceedd commit 80f8d93

File tree

1 file changed

+33
-3
lines changed

1 file changed

+33
-3
lines changed

.config/picom/picom.conf

Lines changed: 33 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -231,10 +231,40 @@ wintypes:
231231

232232
animations = (
233233
{
234-
triggers = ["geometry"];
234+
triggers = ["position"];
235235
preset = "geometry-change";
236-
duration = 0.15;
237-
}
236+
duration = 0.2;
237+
},
238+
{
239+
triggers = ["size"]
240+
scale-x = {
241+
curve = "cubic-bezier(0.175, 0.885, 0.32, 1.275)";
242+
start = "window-width-before / window-width";
243+
end = 1;
244+
duration = 0.2
245+
};
246+
scale-y = {
247+
curve = "cubic-bezier(0.175, 0.885, 0.32, 1.275)";
248+
start = "window-height-before / window-height";
249+
end = 1;
250+
duration = 0.2
251+
};
252+
offset-x = {
253+
curve = "cubic-bezier(0.175, 0.885, 0.32, 1.275)";
254+
start = "window-x-before - window-x";
255+
duration = 0.2
256+
end = 0;
257+
};
258+
offset-y = {
259+
curve = "cubic-bezier(0.175, 0.885, 0.32, 1.2)";
260+
start = "window-y-before - window-y";
261+
duration = 0.2
262+
end = 0;
263+
};
264+
265+
shadow-scale-y = "scale-y";
266+
shadow-scale-x = "scale-x";
267+
},
238268
)
239269

240270
######################

0 commit comments

Comments
 (0)