dotfiles icon indicating copy to clipboard operation
dotfiles copied to clipboard

[FEATURE] Use Hyprpicker to freeze screen contents when taking a screenshot

Open nottucks opened this issue 6 months ago • 8 comments

Is your feature request related to a problem? Please describe.

Title explains it well, taking a screenshot is usually more helpful when the contents aren't changing while I take the photo, and navigating through the menu correctly when time limited isn't very useful.

Describe the solution you'd like

I propose using Hyprpicker to freeze the screen contents on pressing the screenshot bind, solving the issue of screenshot timing.

Describe alternatives you've considered

No response

Additional context

No response

Support or Contribution

nottucks avatar Jun 16 '25 18:06 nottucks

grimblast does this and you are right its a much needed function

# Grimblast freeze the screen copy/save
bind = $mainMod, P, exec, grimblast --freeze copysave area

j5onrf avatar Jun 26 '25 17:06 j5onrf

Being a web developer, having the screen hold position while I snap a screenshot seems like a great feature for productivity. Thank you for suggesting it, setting up now. 😄😀👍🏻💪🏻😎

Web-Dev-Codi avatar Aug 07 '25 03:08 Web-Dev-Codi

I will tryt as well.

mylinuxforwork avatar Aug 07 '25 12:08 mylinuxforwork

grimblast does this and you are right its a much needed function

# Grimblast freeze the screen copy/save
bind = $mainMod, P, exec, grimblast --freeze copysave area

Does it make sense to add the --freeze option as a default to the grimblast commands of the screenshot script? https://github.com/mylinuxforwork/dotfiles/blob/main/dotfiles/.config/hypr/scripts/screenshot.sh

What do you think?

mylinuxforwork avatar Aug 07 '25 13:08 mylinuxforwork

That would be nice, yes.

nottucks avatar Aug 08 '25 01:08 nottucks

That would be nice, yes.

OK. I will add it to the rolling release soon. Then we can test together.

mylinuxforwork avatar Aug 08 '25 05:08 mylinuxforwork

Apologies for the late response, I've been busy getting packed and then settled into college. The suggested command (as in, the one from j5onrf) fixes my issue with the current freeze implementation, wherein it seems to let a frame pass before taking a screenshot, preventing me from taking pictures of things that disappear when your mouse stops hovering over it.

Using dotfiles / hyprshot to take a screenshot of something that requires mouse hovering:

Image

Using the grimblast command:

Image

My best guess is that grimblast unfreezes the screen only after taking the screenshot, and I think your script taking the screenshot after you unfreeze the screen is why it messes up.

nottucks avatar Aug 18 '25 19:08 nottucks

Oh my. I didn't even notice but the cursor gets captured twice with grimblast. I'll see if there's a fix without a delay.

nottucks avatar Aug 19 '25 17:08 nottucks