swww icon indicating copy to clipboard operation
swww copied to clipboard

Feature request: Scrolling/sliding wallpaper

Open auctumnus opened this issue 2 years ago • 5 comments

In a window manager with workspaces, it would be nice to have a sliding/scrolling effect when moving between workspaces, similar to moving between pages of the home screen on iOS or Android.

At the moment, I don't think this achievable with any of the transitions currently implemented, and I'm not sure how the API for a transition like this would work. The nicest API, in my opinion, might look like swww slide 0.1 left - a slide subcommand which takes a float percentage of the screen and a direction, which should move the image (assuming it's larger than the output).

(Although, it would be nice for it to inherit some of the transition options like --step, --duration, --fps, etc)

auctumnus avatar Mar 19 '23 23:03 auctumnus

this is possible with scripting, you hv the transition left or right run when workspace changes, and tweak the bezier so it looks natural

flickowoa avatar Mar 20 '23 04:03 flickowoa

got around to trying this, but there's a delay between pressing the key and the wallpaper changing; is this a problem of my computer simply not reading the file fast enough, or is there a way to reduce the delay?

this is with running a command like swww img background-2.png --transition-type right --transition-duration 0.01 --transition-bezier 0,.68,1,.61

auctumnus avatar Mar 23 '23 17:03 auctumnus

Is your image already at the correct scale? That's the only thing that should take a while.

LGFae avatar Mar 24 '23 14:03 LGFae

It's already at the size of my display, and I'm not using any --filter options (although I did also just try it with --filter Nearest and it had no effect)

auctumnus avatar Mar 25 '23 00:03 auctumnus

Hm. In that case, I am not sure there's anything we can do. It might improve if I come up with a faster way of sending stuff through the socket, but I wouldn't count on it.

LGFae avatar Mar 27 '23 21:03 LGFae