swww icon indicating copy to clipboard operation
swww copied to clipboard

Feature Request: Pause Animation

Open gitgoggles opened this issue 2 years ago • 5 comments

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.

gitgoggles avatar Oct 31 '23 23:10 gitgoggles

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

flickowoa avatar Nov 01 '23 09:11 flickowoa

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.

LGFae avatar Nov 24 '23 14:11 LGFae

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.

LGFae avatar Feb 23 '24 23:02 LGFae

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.

gitgoggles avatar May 02 '24 08:05 gitgoggles

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.

SaverinOnRails avatar Aug 15 '24 05:08 SaverinOnRails