Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the ability to make custom animation presets #1320

Open
0neGal opened this issue Aug 21, 2024 · 0 comments
Open

Add the ability to make custom animation presets #1320

0neGal opened this issue Aug 21, 2024 · 0 comments
Labels
help wanted SOMEBODY PLEASE HELP

Comments

@0neGal
Copy link

0neGal commented Aug 21, 2024

Currently you can only use the pre-compiled presets, while these are great, they're only useful if you like the presets and the configuration options they've. And if you instead want some proper custom animations, and want specific animations per window type, etc, then you're going to be repeating yourself a lot.

And so I propose the ability to make your own presets that can be used.

They would function mostly identically to animation_presets.conf for the preset themselves, and the syntax could be something like this:

# Very barebones presets, I'm not entirely certain on whether the config
# parser supports labeled arrays/objects? If not it may be a better idea
# to have the array items have an extra property for the name of preset
# instead, i.e:
#
#   animation-presets = ({
#   	preset-name: "fade"
#   })
#
animation-presets = (
	fade = {
		opacity = {
			duration = "placeholder0";
			start = "window-raw-opacity-before";
			end = "window-raw-opacity";
		}

		*knobs = {
			scale = 0.95;
			duration = 0.2;
		}

		*placeholders = ((0, "duration"));
	},

	fade-and-slide = {
		opacity = {
			duration = "placeholder0";
			end = "window-raw-opacity";
			start = "window-raw-opacity-before";
		}

		offset-y = {
			start = 0;
			end = "window-height";
			duration = "placeholder0";
		}

		*knobs = {
			duration = 0.2;
		}

		*placeholders = ((0, "duration"));
	}
)
@0neGal 0neGal changed the title Add the ability to make custom presets Add the ability to make custom animation presets Aug 21, 2024
@yshui yshui added the help wanted SOMEBODY PLEASE HELP label Aug 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted SOMEBODY PLEASE HELP
Projects
None yet
Development

No branches or pull requests

2 participants