Gustash/Hyprshot

Is there a way to disable animations for hyprshot?

nyox2stupid opened this issue · 8 comments

I've tried this already:
windowrulev2 = noanim, title:(hyprshot)
But it doesn't seem to work. The problem is that I always see a bit of the slurp border when taking a screenshot, like seen in the image.
image

Hyprshot isn't a GUI application, it shouldn't have animations or any graphics related stuff

Are you talking about --freeze flag? If not, could you clarify your problem?

Hyprshot isn't a GUI application, it shouldn't have animations or any graphics related stuff

I know but it still has animations for me (its sliding in/out from the top)

Are you talking about --freeze flag? If not, could you clarify your problem?

Nope, that sadly doesn't fix it.

For some reason when I exec hyprshot --clipboard-only -m region the notification has an animation (using mako)

Any other options don't cause this notification animation?

Any other options don't cause this notification animation?

I tried most options, same thing.

Edit: Honestly I like hyprshot's notification animation more than the default fade, how did you replicate that? (if you know)

Actually, nohow. It just uses default behavior of notify-send

You can see it yourself -

notify-send "Screenshot saved" \

Hey I know this is kinda old but I found a workaround that works pretty fine. This is for the OP, I was having the same issue because my animations are kinda slow, so when the screenshot is beign taken, the slurp selection region is still animating and it ends up showing on the capture. You just have to temporarily disable all animations and then re-enable them after taking a screenshot. This is an example script:

hyprctl keyword animations:enabled 0
hyprshot -m window -z --clipboard-only
hyprctl reload # reset to base state, here you could also just set enabled to 1

You can see this implemented in my screenshot script on my dotfiles

layerrule = noanim, selection

enjoy, my friend. took me few minutes to figure out how to check layername without ssh ^^