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: Pause Animation #181

Open
gitgoggles opened this issue Oct 31, 2023 · 5 comments
Open

Feature Request: Pause Animation #181

gitgoggles opened this issue Oct 31, 2023 · 5 comments
Labels
enhancement New feature or request

Comments

@gitgoggles
Copy link

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.

@flick0
Copy link
Contributor

flick0 commented Nov 1, 2023

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

@LGFae LGFae added the enhancement New feature or request label Nov 24, 2023
@LGFae
Copy link
Owner

LGFae commented Nov 24, 2023

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
Copy link
Owner

LGFae commented Feb 23, 2024

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.

@gitgoggles
Copy link
Author

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.

@Eugenenoble2005
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants