Skip to content

feat: add animation_easing command to configure animation easing - #586

Open
PyGuy-Programming wants to merge 1 commit into
wlrfx:masterfrom
PyGuy-Programming:feat/animation-easing
Open

PyGuy-Programming wants to merge 1 commit into
wlrfx:masterfrom
PyGuy-Programming:feat/animation-easing

Conversation

@PyGuy-Programming

Copy link
Copy Markdown

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) and bounce.

Implementation mirrors the existing animation_duration_ms command:

  • new sway/commands/animation_easing.c + registration + declaration
  • easing table in sway/animation_manager.c, default EASING_CUBIC preserved in config init
  • documented in sway/sway.5.scd

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant