allusive-dev / compfy

A Compositor for X11 based on Picom. No Longer Maintained in favor of Picom v12!
203 stars 23 forks source link

Override animation type for specific windows #55

Closed Myvillithdar closed 6 months ago

Myvillithdar commented 8 months ago

I can write rules to exclude windows from open/close animations, but I think it'd be cool to be able to set different animations for certain windows. I'm imagining a configuration syntax based on opacity-rule like the following (this could maybe replace animation-open-exclude and animation-unmap-exclude):

animation-open-rule = [
  "slide-down:window_type = 'tooltip'",
  "none:class_g = 'Conky'"
]

animation-unmap-rule = [
  "slide-up:window_type = 'tooltip'",
  "none:class_g = 'Conky'"
]
nathansCodes commented 8 months ago

You can set the animations in the wintypes. Just make sure to write animation instead of animation-open and you'll be fine. A way of setting animations for specific windows would be great, although I myself have no use case for that

allusive-dev commented 6 months ago

This was actually implemented at one point but never reached the repository. Sorry for that!