File: animation_presets.conf

package info (click to toggle)
picom 13-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 2,432 kB
  • sloc: ansic: 25,725; python: 685; sh: 365; makefile: 11
file content (213 lines) | stat: -rw-r--r-- 6,473 bytes parent folder | download | duplicates (2)
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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
disappear = {
    opacity = {
        duration = "placeholder0";
        start = "window-raw-opacity-before";
        end = "window-raw-opacity";
    };
    blur-opacity = "opacity";
    shadow-opacity = "opacity";
    offset-x = "(1 - scale-x) / 2 * window-width";
    offset-y = "(1 - scale-y) / 2 * window-height";
    scale-x = {
        curve = "cubic-bezier(0.21, 0.02, 0.76, 0.36)";
        duration = "placeholder0";
        start = 1;
        end = "placeholder1";
    };
    scale-y = "scale-x";
    shadow-scale-x = "scale-x";
    shadow-scale-y = "scale-y";
    shadow-offset-x = "offset-x";
    shadow-offset-y = "offset-y";

    # See comments in tools/animgen.c for syntax
    *knobs = {
        scale = 0.95;
        duration = 0.2;
    };
    *placeholders = ((0, "duration"),(1, "scale"));
};

appear = {
    opacity = {
        duration = "placeholder0";
        start = "window-raw-opacity-before";
        end = "window-raw-opacity";
    };
    blur-opacity = "opacity";
    shadow-opacity = "opacity";
    offset-x = "(1 - scale-x) / 2 * window-width";
    offset-y = "(1 - scale-y) / 2 * window-height";
    scale-x = {
        curve = "cubic-bezier(0.24, 0.64, 0.79, 0.98)";
        duration = "placeholder0";
        start = "placeholder1";
        end = 1;
    };
    scale-y = "scale-x";
    shadow-scale-x = "scale-x";
    shadow-scale-y = "scale-y";
    shadow-offset-x = "offset-x";
    shadow-offset-y = "offset-y";
    *knobs = {
        scale = 0.95;
        duration = 0.2;
    };
    *placeholders = ((0, "duration"),(1, "scale"));
};

slide-out = {
    v-timing = {
        curve = "cubic-bezier(0.21, 0.02, 0.76, 0.36)";
        start = 0;
        duration = "placeholder0";
        end = "window-width * placeholder1 + window-height * placeholder2";
    };
    offset-x = "v-timing * placeholder3";
    offset-y = "v-timing * (1 - placeholder3)";
    shadow-offset-x = "offset-x";
    shadow-offset-y = "offset-y";
    crop-x = "window-x";
    crop-y = "window-y";
    crop-width = "window-width";
    crop-height = "window-height";
    opacity = {
        start = "window-raw-opacity-before";
        end = "window-raw-opacity-before";
        duration = "placeholder0";
    };
    blur-opacity = "opacity";
    shadow-opacity = "opacity";
    *knobs = {
        duration = 0.2;
        direction = (2, ["up", "down", "left", "right"]);
    };
    *placeholders = (
        (0, "duration"),
        (1, "direction", [0, 0, -1, 1]),
        (2, "direction", [-1, 1, 0, 0]),
        (3, "direction", [0, 0, 1, 1]),
    );
};

slide-in = {
    v-timing = {
        curve = "cubic-bezier(0.24, 0.64, 0.79, 0.98)";
        start = "window-width * placeholder1 + window-height * placeholder2";
        duration = "placeholder0";
        end = 0;
    };
    offset-x = "v-timing * placeholder3";
    offset-y = "v-timing * (1 - placeholder3)";
    shadow-offset-x = "offset-x";
    shadow-offset-y = "offset-y";
    crop-x = "window-x";
    crop-y = "window-y";
    crop-width = "window-width";
    crop-height = "window-height";
    *knobs = {
        duration = 0.2;
        direction = (2, ["up", "down", "left", "right"]);
    };
    *placeholders = (
        (0, "duration"),
        (1, "direction", [0, 0, -1, 1]),
        (2, "direction", [-1, 1, 0, 0]),
        (3, "direction", [0, 0, 1, 1]),
    );
};

fly-out = {
    v-timing = {
        curve = "cubic-bezier(0.05, 0, 0.69, -0.05)";
        duration = "placeholder0";
        start = 0;
        end = "window-height * placeholder2 + window-y * placeholder5 + window-width * placeholder1 + window-x * placeholder4";
    };
    offset-x = "v-timing * placeholder3";
    offset-y = "v-timing * (1 - placeholder3)";
    shadow-offset-x = "offset-x";
    shadow-offset-y = "offset-y";
    opacity = {
        start = "window-raw-opacity-before";
        end = "window-raw-opacity-before";
        duration = "placeholder0";
    };
    shadow-opacity = "opacity";
    blur-opacity = "opacity";
    *knobs = {
        duration = 0.2;
        direction = (0, ["up", "down", "left", "right"]);
    };
    *placeholders = (
        (0, "duration"),
        (1, "direction", [0, 0, -1, 1]), # left/right -> +1/-1 for X axis
        (2, "direction", [-1, 1, 0, 0]), # up/down -> +1/-1 for Y axis
        (3, "direction", [0, 0, 1, 1]),  # X/Y axis switch
        (4, "direction", [0, 0, -1, 0]),  # whether window X is added
        (5, "direction", [-1, 0, 0, 0]),  # whether window Y is added
    );
};
fly-in = {
    v-timing = {
        curve = "cubic-bezier(0.17, 0.67, 0.68, 1.03)";
        end = 0;
        duration = "placeholder0";
        start = "window-height * placeholder2 + window-y * placeholder5 + window-width * placeholder1 + window-x * placeholder4";
    };
    offset-x = "v-timing * placeholder3";
    offset-y = "v-timing * (1 - placeholder3)";
    shadow-offset-x = "offset-x";
    shadow-offset-y = "offset-y";
    *knobs = {
        duration = 0.2;
        direction = (0, ["up", "down", "left", "right"]);
    };
    *placeholders = (
        (0, "duration"),
        (1, "direction", [0, 0, -1, 1]), # left/right -> +1/-1 for X axis
        (2, "direction", [-1, 1, 0, 0]), # up/down -> +1/-1 for Y axis
        (3, "direction", [0, 0, 1, 1]),  # X/Y axis switch
        (4, "direction", [0, 0, -1, 0]),  # whether window X is added
        (5, "direction", [-1, 0, 0, 0]),  # whether window Y is added
    );
};
geometry-change = {
    scale-x = {
        curve = "cubic-bezier(0.07, 0.65, 0, 1)";
        duration = "placeholder0";
        start = "window-width-before / window-width";
        end = 1;
    };
    scale-y = {
        curve = "cubic-bezier(0.07, 0.65, 0, 1)";
        duration = "placeholder0";
        start = "window-height-before / window-height";
        end = 1;
    };
    shadow-scale-x = "scale-x";
    shadow-scale-y = "scale-y";
    offset-x = {
        curve = "cubic-bezier(0.07, 0.65, 0, 1)";
        duration = "placeholder0";
        start = "window-x-before - window-x";
        end = 0;
    };
    offset-y = {
        curve = "cubic-bezier(0.07, 0.65, 0, 1)";
        duration = "placeholder0";
        start = "window-y-before - window-y";
        end = 0;
    };
    saved-image-blend = {
        duration = "placeholder0";
        start = 1;
        end = 0;
    };
    shadow-offset-x = "offset-x";
    shadow-offset-y = "offset-y";
    *knobs = {
        duration = 0.4;
    };
    *placeholders = ((0, "duration"));
};