mortie / swaylock-effects

Swaylock, with fancy effects
MIT License
708 stars 46 forks source link

Fade in and out the lockscreen #5

Open neon64 opened 5 years ago

neon64 commented 5 years ago

This is perhaps a bit of a long shot considering sway itself doesn't support animations yet, but I was wondering if it is technically possible for swaylock-effects to do transitions from the desktop to the lockscreen. an MVP would perhaps be a simple alpha fade.

Is this something that can be implemented here alone, or does it require wlroots support?

mortie commented 5 years ago

That kind of transition would be really nice actually. I don't think it's something we need wlroots to support; from what I understand, swaylock just gives the compositor a buffer of RGBA pixels, and we could just start with a low alpha and gradually increase it.

I don't know how to actually implement that in practice though, but I'll experiment with it a bit.

mortie commented 4 years ago

I finally got around to implementing a fade in animation: https://github.com/mortie/swaylock-effects/commit/a1cbba6b9c5e07fc7877989f60e0f6b630606885

NDagestad commented 4 years ago

If somebody is interested I have a WIP branch for fading out (it works when we fade in so I suppose I am not missing much for it to work all the time)

lokesh-krishna commented 3 years ago

Are there any plans to also implement fade out?

Eclextic commented 1 year ago

Is this still being worked on?

NDagestad commented 1 year ago

Probably not, this fork has not been updated to implement the latest session locking protocols. I have not touched my attempt at fade out in a very long time either

Eclextic commented 1 year ago

Would you want to close this then or continue development? I actually would appreciate this feature!

NDagestad commented 1 year ago

I have gone back to upstream swaylock after swaylock-effects and forks where people tried to continue the work after the original stopped being maintained. I wasn't even very familiar with the codebase when I tried to implement the fade out, and I don't think I'll try again now, sorry. You can try going through the forks but I don't know if any of them are active and up to date with the latest session locking protocol