Skip to content

Commit 191d114

Browse files
committed
animation/presets: add geometry-change preset
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
1 parent 719f2a2 commit 191d114

File tree

4 files changed

+361
-1
lines changed

4 files changed

+361
-1
lines changed

assets/geometry-change.mp4

122 KB
Binary file not shown.

data/animation_presets.conf

+40-1
Original file line numberDiff line numberDiff line change
@@ -162,4 +162,43 @@ fly-in = {
162162
(2, "direction", [-1, 1, 0, 0]),
163163
(3, "direction", [0, 0, 1, 1]),
164164
);
165-
}
165+
};
166+
geometry-change = {
167+
scale-x = {
168+
curve = "cubic-bezier(0.07, 0.65, 0, 1)";
169+
duration = "placeholder0";
170+
start = "window-width-before / window-width";
171+
end = 1;
172+
};
173+
scale-y = {
174+
curve = "cubic-bezier(0.07, 0.65, 0, 1)";
175+
duration = "placeholder0";
176+
start = "window-height-before / window-height";
177+
end = 1;
178+
};
179+
shadow-scale-x = "scale-x";
180+
shadow-scale-y = "scale-y";
181+
offset-x = {
182+
curve = "cubic-bezier(0.07, 0.65, 0, 1)";
183+
duration = "placeholder0";
184+
start = "window-x-before - window-x";
185+
end = 0;
186+
};
187+
offset-y = {
188+
curve = "cubic-bezier(0.07, 0.65, 0, 1)";
189+
duration = "placeholder0";
190+
start = "window-y-before - window-y";
191+
end = 0;
192+
};
193+
saved-image-blend = {
194+
duration = "placeholder0";
195+
start = 1;
196+
end = 0;
197+
};
198+
shadow-offset-x = "offset-x";
199+
shadow-offset-y = "offset-y";
200+
*knobs = {
201+
duration = 0.4;
202+
};
203+
*placeholders = ((0, "duration"));
204+
};

man/picom.1.adoc

+16
Original file line numberDiff line numberDiff line change
@@ -598,6 +598,22 @@ endif::[]
598598

599599
_duration_:: Duration of the animation in seconds.
600600
--
601+
+
602+
_geometry-change_:::
603+
+
604+
Animate the geometry (i.e. size and position) change of the window.
605+
+
606+
--
607+
ifdef::env-web[]
608+
video::assets/geometry-change.mp4[width=400]
609+
endif::[]
610+
--
611+
+
612+
--
613+
*Options*:::
614+
615+
_duration_:: Duration of the animation in seconds.
616+
--
601617

602618
=== Advanced
603619

0 commit comments

Comments
 (0)