yshui / picom

A lightweight compositor for X11 with animation support
https://picom.app/
Other
4.09k stars 586 forks source link

[Feature Request] Sliding animations for workspace switches. #635

Closed Animeshz closed 1 year ago

Animeshz commented 3 years ago

Any implementation for top-bottom bottom-top or left-right right-left sliding transition animations for switching desktops/workspaces?

subnut commented 3 years ago

I guess that's the task of the Window Manager?

I could be wrong, though.

xlucn commented 3 years ago

I had the same FR in one of the forks: https://github.com/jonaburg/picom/issues/31. Some are interested, but nobody seems to have actually implemented anything. There might be useful information in that issue, tho.

Edit: that fork had implemented animation, that's why I requested there instead of in this upstream repo.

pijulius commented 2 years ago

Hi Guys, this works now in my fork here: https://github.com/pijulius/picom/commit/b92d4105ea8cc31a22fec64c5241b867b9f92632

but you need to have a window manager that sets the _NET_CURRENT_DESKTOP before hiding/showing the windows as I haven't found a better way to detect workspace switching from picom itself.

Have made the necessary change for Fluxbox and with that change it seems to be working just exactly as I wanted, windows sliding out on the top and sliding in from the bottom.

Animeshz commented 2 years ago

@pijulius any chance you'll (send a PR and) merge it to the upstream? I see too many fork and hard to work with each one for different features :p its definitely like DWM (building everything by patching the upstream).

pijulius commented 2 years ago

There is a pull request already here https://github.com/dccsillag/picom/pull/22

but it's up to Daniel to accept the changes and then it will be up to the moderators here to accept it to picom. Unfortunately don't see much chance for that at the moment as still a lot of these things are in very early state, haven't been tested in all situations so even if it gets into the original picom it will be under a testing branch of some sort I imagine.

nonetrix commented 2 years ago

Hyprland has this if you can run Wayland well and don't mind Waylands missing features only reason I don't use it is NVIDIA

fdev31 commented 1 year ago

I made some experiments based on the FTLabs branch, trying to keep it generic and up-to-date (but only tested on qtile)...

https://github.com/fdev31/picom

I'm still testing the sliding animation, once I don't see anything I can fix I'll clean up the code and make it optional. Other animations are mostly from FTLabs but I reworked it to be simpler & I believe a bit more generic.

absolutelynothelix commented 1 year ago

closing as duplicate of #1121.