Feature Request: Pause Animation
Sorry if this is wrong, it's my first issue. I have to run 'swww kill' if I want to game or I get microstuttering in-game. It would be cool to be able to pause swww somehow.
im assuming u mean to pause the gif?, in that case you can also make a script to show a still frame extracted from the said gif instead
This is actually something I wanted to implement automatically, but the problem is there didn't seem to be an easy way to figure out whether the wallpaper is currently visible.
Also, if only a tiny little bit of it was visible, it would animate the whole thing, so it would only help if you were playing games in full screen.
As for a specific "pause" command, it seems possible, but I imagine it would be pretty annoying, since it might cause some race conditions. Nevertheless, it seems useful, so I'll see what we can do.
Hello, would it be enough to just stop when the wallpaper isn't visible? So, for example, when you are playing a game in fullscreen.
Sorry for the silence, I think I messed up my github notifications. Yes it would be perfect for it to pause while playing a game in fullscreen. Alternatively, some kind of cli dispatch thing where I can bind a command to a key and trigger it when required.
I've noticed on hyprland 0.42.0,
hyprctl reload
will pause the gif and reduce swww cpu usage to 0. You can make a keybind to do this and make another that runs:
swww restore
to instantly resume the gif. Not clean or neat but probably easier than writing a bash script to set a still frame.