Disable animations during screenshots#4493
Conversation
Temporarily turns off Hyprland animations while omarchy-cmd-screenshot runs to avoid capturing mid-transition frames.
|
How is the problem you're trying to solve manifesting itself? Why not just wait until whatever anim you're looking at is done? |
|
The issue shows up when triggering the screenshot during an active animation (workspace switch or window open/close). The captured frame can be in mid‑transition, so the window appears partially offset/blurred or mid‑fade. Waiting isn’t always works out because the screenshot flow itself (slurp + wayfreeze) can be invoked while animations are still running. The change freezes a stable frame by temporarily disabling animations only for the capture, then restores them immediately after. I could not reproduce this behavior (screenshot result that's messed up by the animation) in my other machine with the same custom animations config but the animation is still indeed rolling when invoking the https://github.com/user-attachments/assets/88897d1b-0249-4360-9da0-f53be2e1661b https://github.com/user-attachments/assets/683219d9-a354-476e-8c58-643a7b0c7dac https://github.com/user-attachments/assets/8529abe5-cde0-43d7-bce9-78ffb8d7a3c6 I can provide the messed up screenshot later when I got back to that machine... |
Summary
omarchy-cmd-screenshotruns to avoid mid-transition captures