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

Feature Request : looping custom effects #115

Open
jules-timmerman opened this issue Apr 4, 2024 · 1 comment
Open

Feature Request : looping custom effects #115

jules-timmerman opened this issue Apr 4, 2024 · 1 comment

Comments

@jules-timmerman
Copy link

I really enjoy this fork, but I haven’t found a way to have effects that vary as time goes on.
I believe we could extend the behavior of --effect-custom by adding a switch --effect-custom-loop.
The lib would have a function with the signature looking like struct timespec swaylock_effect(uint32_t *data, int width, int height, int scale) where the returned value would be the expiry value in a struct loop_timer and we would re-execute this function again after expiry run out
I am ok with implementing this but I would love some feedback first.

@omgold
Copy link

omgold commented Dec 11, 2024

I wished swaylock could do slideshows. Seems like what you are talking about would be a prerequisite for that.

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

No branches or pull requests

2 participants