Skip to content
This repository has been archived by the owner on Feb 22, 2024. It is now read-only.

Exclude Move/Resizing Animations #43

Open
daricoder opened this issue Nov 18, 2023 · 10 comments
Open

Exclude Move/Resizing Animations #43

daricoder opened this issue Nov 18, 2023 · 10 comments
Assignees
Labels
delayed The issue was being worked on but progress has been delayed enhancement New feature or request

Comments

@daricoder
Copy link

There is a way to disable or exclude window movement animations for a certain type of window. I have some windows that have their own movement animation. In the specific case I used Lua's rubato library to create the animation but this animation interferes with the compfy motion animation.

@allusive-dev
Copy link
Owner

Hey @daricoder
I assume you mean the animations of windows when you are say switching them between layouts or monitors or dragging them, those being the animating of movement updates?

@daricoder
Copy link
Author

daricoder commented Nov 19, 2023

Sorry for the delay 🙃 .
Ehmm no 🤔,
I mean that you can exclude smooth movement for certain types of windows. Just like the animations of opening (animation-open-exclude) and closing (animation-unmap-exclude) of windows, the same would be filtering the animation of smoothness but for the movement of windows.

Certain windows have animations created by rubato and these animations worked well since picom did not include animations. Now the rubato animation doesn't look good because it interferes with the compfy motion animation as I use rubato to interpolate the window motion. I think it would be nice if you could exclude the motion animation for certain window types letting the user create their own animations.

The animation I use is rubato's bouncy -> search for bouncy

@allusive-dev
Copy link
Owner

@daricoder
If you are just looking to exclude open and unmap animations take a look at this page in the wiki.

If you are looking for something else please let me know.

@daricoder
Copy link
Author

daricoder commented Nov 19, 2023

Yes, I just edited my previous comment.
What I am asking is to exclude the window movement animation (not open or close animation) to be able to let users define their own movement animation. In my case I use a notification window that has a motion tweening animation and it interferes with the smooth motion of compfy.

@allusive-dev
Copy link
Owner

let users define their own movement animation.

Hm.
So let users declare their own animations (for open/unmap) using a custom syntax?

@daricoder
Copy link
Author

I would suggest that smooth motion can be disabled for certain types of windows. Something like "animation-move-exclude" This way it allows the user to decide whether to create their own animations with their own libraries or use compfy's smooth motion animation.

@daricoder
Copy link
Author

Maybe in the future you could see the best way to map the open and close animations (zoom, slide-up, etc.). It would be something like renaming "animation-for-open-window" to "animation-default-open-window" and the old "animation-for-open-window" to map animations to windows like:
animation-for-open-window = ["class_g:slide-left = 'Rofi'", ];
I don't know these are just some ideas lol.

@allusive-dev
Copy link
Owner

I would suggest that smooth motion can be disabled for certain types of windows.

I'm not sure what the difference between that and animations as a whole is?

animation-for-open-window = ["class_g:slide-left = 'Rofi'", ];

This is not possible at the moment I have tried in. Passing a string into a string with a entptr being : is beyond my knowledge currently.

@daricoder
Copy link
Author

I'm not sure what the difference between that and animations as a whole is?

animations=true enables animations for both opening, closing, moving and resizing windows.

You already exclude the animations for opening and closing windows with
animation-open-exclude and animation-unmap-exclude but you do not exclude the animation for their movement. If you disable or exclude the animation for movement then you will let the user implement their own movement animation so that it does not interfere. In my case, I have some windows that work as widgets and have their own movement animation where compfy interferes.

@allusive-dev
Copy link
Owner

I see. I'll take a look into it.

@allusive-dev allusive-dev self-assigned this Nov 21, 2023
@allusive-dev allusive-dev added in progress This issue is currently being worked on. enhancement New feature or request labels Nov 21, 2023
@allusive-dev allusive-dev added delayed The issue was being worked on but progress has been delayed and removed in progress This issue is currently being worked on. labels Nov 30, 2023
@allusive-dev allusive-dev changed the title exclude move animation? Exclude Move/Resizing Animations Nov 30, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
delayed The issue was being worked on but progress has been delayed enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants