feat: add animation_easing command to configure animation easing - #586
Open
PyGuy-Programming wants to merge 1 commit into
Open
PyGuy-Programming wants to merge 1 commit into
PyGuy-Programming wants to merge 1 commit into
Conversation
PyGuy-Programming
force-pushed
the
feat/animation-easing
branch
from
September 14, 2026 11:17
c887625 to
537a299
Compare
Adds a config command to select the easing curve applied to all animations: linear, quad, cubic (default, matches previous behaviour) and back for a springy overshoot feel. As the back curve can overshoot past 1, clamp opacity before it reaches wlr_scene_buffer_set_opacity and the scene colors, which wlroots constrains to the unit range. sway/sway.5.scd documents the new command.
PyGuy-Programming
force-pushed
the
feat/animation-easing
branch
from
September 14, 2026 11:31
537a299 to
19f7dbe
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a config command to select the easing curve applied to all animations (window open/close, movements, workspace fades).
Options:
linear,quad,cubic(default, matches previous behaviour),back(springy overshoot) andbounce.Implementation mirrors the existing
animation_duration_mscommand:sway/commands/animation_easing.c+ registration + declarationsway/animation_manager.c, defaultEASING_CUBICpreserved in config initsway/sway.5.scd