You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: man/picom.1.adoc
+28Lines changed: 28 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -515,6 +515,10 @@ animations = ({
515
515
516
516
_decrease-opacity_:: When the opacity of a window is decreased.
517
517
518
+
[[trigger-geometry]]_geometry_:: When the geometry of a window is changed. (EXPERIMENTAL)
519
+
+
520
+
WARNING: The _geometry_ trigger is experimental. Using this means you accept the caveat that geometry animations will also trigger when you manually resize or move a window, like when you drag the window around with your mouse.
521
+
518
522
_suppressions_:::
519
523
Which other animations should be suppressed when this animation is running. Normally, if another trigger is activated while an animation is already running, the animation in progress will be interrupted and the new animation will start. If you want to prevent this, you can set the `suppressions` option to a list of triggers that should be suppressed. This is optional, the default value for this is an empty list.
520
524
@@ -594,6 +598,24 @@ endif::[]
594
598
595
599
_duration_:: Duration of the animation in seconds.
596
600
--
601
+
+
602
+
_geometry-change_:::
603
+
+
604
+
Animate the geometry (i.e. size and position) change of the window.
605
+
+
606
+
WARNING: This makes use of both the <<trigger-geometry>> trigger, and the <<saved-image-blend>> output variable. Both of these features are experimental and may not work as expected.
607
+
+
608
+
--
609
+
ifdef::env-web[]
610
+
video::assets/geometry-change.mp4[width=400]
611
+
endif::[]
612
+
--
613
+
+
614
+
--
615
+
*Options*:::
616
+
617
+
_duration_:: Duration of the animation in seconds.
618
+
--
597
619
598
620
=== Advanced
599
621
@@ -693,6 +715,10 @@ Currently, these output variables are supported: :::
693
715
694
716
_crop-x_, _crop-y_, _crop-width_, _crop-height_:: These four values combined defines a rectangle on the screen. The window and its shadow will be cropped to this rectangle. If not defined, the window and shadow will not be cropped.
695
717
718
+
[[saved-image-blend]]_saved-image-blend_:: When the window's geometry changes, its content will often change drastically, creating a jarring discontinuity. This output variable allows you to blend the window's content before and after the geometry change, the before and after images will be stretched appropriately to match the animation. This way you can smoothly animated geometry changes. This is a number between 0 and 1. 0 means the saved image is not used, whereas 1 means you will only see the saved image. (EXPERIMENTAL)
719
+
+
720
+
WARNING: The _saved-image-blend_ variable is experimental. It might work incorrectly, cause visual artifacts, or slow down your system. You are welcome to open an issue on GitHub if you encounter any problems to help us improve it, though resolution is not guaranteed.
721
+
696
722
All coordinates are in pixels, and are in the coordinate system of the screen. Sizes are also in pixels.
697
723
698
724
IMPORTANT: If an output variable name is not defined in your animation script, it will take the default value for whichever state the window is in. Specifically, if you don't define an _opacity_ variable in the animation script for the "close" or "hide" trigger, a closed window will, by default, have 0 opacity. So you will just see it disappear instantly. Oftentimes, you will want to set _opacity_ to 1 to make the window visible for the duration of the animation.
@@ -713,6 +739,8 @@ Currently, these context variables are defined: :::
713
739
714
740
_window-width_, _window-height_:: The size of the window.
715
741
742
+
_window-x-before_, _window-y-before_, _window-width-before_, _window-height-before_:: The size and coordinates of the window before the animation is triggered. This is only meaningfully different from the normal window geometry variables for the _geometry_ trigger.
743
+
716
744
_window-monitor-x_, _window-monitor-y_, _window-monitor-width_, _window-monitor-height_:: Defines the rectangle which reflects the monitor the window is on. If the window is not fully contained in any monitor, the rectangle will reflect the entire virtual screen.
717
745
718
746
_window-raw-opacity-before_, _window-raw-opacity_:: Animation triggers are usually accompanied by a change in the window's opacity. For example, when a window is opened, its opacity changes from 0 to 1. These two variables reflect the opacity of the window before and after the animation is triggered. They are useful if you want to smoothly transition the window's opacity.
0 commit comments