hyprwm / hyprland-plugins

Official plugins for Hyprland
BSD 3-Clause "New" or "Revised" License
573 stars 60 forks source link

[Plugin Request] Smooth transition between two frames for switching color schemes #147

Open Aylur opened 7 months ago

Aylur commented 7 months ago

This could be done with widgets by creating a screenshot and easing out its opacity which is what gnome is actually doing, but instead of a screenshot it gets the rendered rectangle from the compositor, so I feel like it would be better to have this as a feature at the compositor level, because in my experience its kind of expensive and slow for GTK to render a fullscreen image and it doesn't feel as smooth

So my request is for a plugin that would expose a dispatcher that would ease in the next frame.

https://github.com/hyprwm/hyprland-plugins/assets/104676705/a87c6c1f-0610-4423-b74b-67f80ce7269a

vaxerski commented 7 months ago

sounds trivial, feel free to try yourself.

a simple RENDER_LAST_MOMENT event hook should be enough

nnra6864 commented 4 months ago

Hi, I actually made something fairly similar recently. I am working on a tool, Ricer, that aims to make ricing all apps as seamless as possible. I wanted to have something similar to a transition you described above so I made a simple Python script that takes a screenshot and then fades it out. I plan to add more transitions, similar to swww, as soon as I have some free time. Shifter (Most of the delay seen in the video is caused by the glava taking a really long time to start, you can edit my fish function linked in the shifter repo so it waits less to start the fade)