hyprwm / hyprland-plugins

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

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

Open Aylur opened 2 months ago

Aylur commented 2 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 2 months ago

sounds trivial, feel free to try yourself.

a simple RENDER_LAST_MOMENT event hook should be enough