picom-config-jaskier/include/mabox-animations.conf
2024-12-25 00:43:05 +01:00

134 lines
5.2 KiB
Plaintext

# ███╗ ███╗ █████╗ ██████╗ ██████╗ ██╗ ██╗ ██████╗ ██╗ ██████╗ ██████╗ ███╗ ███╗
# ████╗ ████║██╔══██╗██╔══██╗██╔═══██╗╚██╗██╔╝ ██╔══██╗██║██╔════╝██╔═══██╗████╗ ████║
# ██╔████╔██║███████║██████╔╝██║ ██║ ╚███╔╝ ██████╔╝██║██║ ██║ ██║██╔████╔██║
# ██║╚██╔╝██║██╔══██║██╔══██╗██║ ██║ ██╔██╗ ██╔═══╝ ██║██║ ██║ ██║██║╚██╔╝██║
# ██║ ╚═╝ ██║██║ ██║██████╔╝╚██████╔╝██╔╝ ██╗ ██║ ██║╚██████╗╚██████╔╝██║ ╚═╝ ██║
# ╚═╝ ╚═╝╚═╝ ╚═╝╚═════╝ ╚═════╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═╝
# █████╗ ███╗ ██╗██╗███╗ ███╗ █████╗ ████████╗██╗ ██████╗ ███╗ ██╗
# ██╔══██╗████╗ ██║██║████╗ ████║██╔══██╗╚══██╔══╝██║██╔═══██╗████╗ ██║
# ███████║██╔██╗ ██║██║██╔████╔██║███████║ ██║ ██║██║ ██║██╔██╗ ██║
# ██╔══██║██║╚██╗██║██║██║╚██╔╝██║██╔══██║ ██║ ██║██║ ██║██║╚██╗██║
# ██║ ██║██║ ╚████║██║██║ ╚═╝ ██║██║ ██║ ██║ ██║╚██████╔╝██║ ╚████║
# ╚═╝ ╚═╝╚═╝ ╚═══╝╚═╝╚═╝ ╚═╝╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═══╝
# Animations for NORMAL windows.
{
match = "window_type = 'normal'";
animations = (
{
triggers = ["close"];
#preset = "slide-out";
#direction = "up";
opacity = {
curve = "linear";
duration = 0.6;
start = "window-raw-opacity-before";
end = 0;
};
blur-opacity = "opacity";
shadow-opacity = "opacity";
},
{
triggers = ["hide"];
preset = "disappear";
direction = "up";
duration = 0.4;
},
{
triggers = ["open", "show"];
opacity = {
curve = "cubic-bezier(0,1,1,1)";
duration = 0.6;
start = 0;
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,1.3,1,1)";
duration = 0.5;
start = 0.6;
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";
},
{
triggers = ["geometry"]
scale-x = {
curve = "cubic-bezier(0,0,0,1.28)";
duration = 0.3;
start = "window-width-before / window-width";
end = 1;
}
scale-y = {
curve = "cubic-bezier(0,0,0,1.28)";
duration = 0.3;
start = "window-height-before / window-height";
end = 1;
}
offset-x = {
curve = "cubic-bezier(0,0,0,1.28)";
duration = 0.3;
start = "window-x-before - window-x";
end = 0;
}
offset-y = {
curve = "cubic-bezier(0,0,0,1.28)";
duration = 0.3;
start = "window-y-before - window-y";
end = 0;
}
shadow-scale-x = "scale-x";
shadow-scale-y = "scale-y";
shadow-offset-x = "offset-x";
shadow-offset-y = "offset-y";
}
)
},
{
match = "name = 'Quake Term'";
corner-radius = 0;
opacity = 1.0;
animations = (
{
triggers = ["close", "hide"];
preset = "fly-out";
direction = "up";
duration = 0.2;
},
{
triggers = ["open", "show"];
preset = "fly-in";
direction = "up";
duration = 0.2;
}
)
},
{
match = "name = 'Quake Radio'";
opacity = 1.0;
animations = (
{
triggers = ["close", "hide"];
preset = "fly-out";
direction = "right";
duration = 0.2;
},
{
triggers = ["open", "show"];
preset = "fly-in";
direction = "right";
duration = 0.2;
}
)
},