contrib icon indicating copy to clipboard operation
contrib copied to clipboard

grimshot: exclude hyprland shaders tint from screenshot

Open jncsotk30 opened this issue 10 months ago • 7 comments

Would it be possible to add a flag to exclude any hyprshade shaders from the screenshot taken(capture area | output, window, region etc)? Same thing for wlsunset. I usually have hyprshade running with a blue-light-filter, and when I screenshot, it includes that shader and duplicates the effect making the screenshot even more orange from the shader. I have to disable hyprshade first before screenshotting and it's rather jarring experience to screenshot.

hyprshade enabled...

Image

hyprshade disabled...

Image

jncsotk30 avatar Feb 01 '25 03:02 jncsotk30

IIRC hyprland auto-disables shaders for screenshots. Are you using nvidia?

fufexan avatar Feb 01 '25 07:02 fufexan

IIRC hyprland auto-disables shaders for screenshots. Are you using nvidia?

Yes, I am. Is there a property to include in the config for this to work? Also, is it a specific tool like hyprshot, grimblast etc that Hyprland accounts for to disable shaders?

jncsotk30 avatar Feb 01 '25 14:02 jncsotk30

I don't think so. I believe the protocol knows when e.g. grim is taking a screenshot, but I'm not certain. This is what I've read on the discord, mentioned by some users with similar issues.

@vaxerski correct me if I'm wrong.

fufexan avatar Feb 02 '25 09:02 fufexan

we dont exclude screen shaders from screenshots

vaxerski avatar Feb 03 '25 00:02 vaxerski

we dont exclude screen shaders from screenshots

Thank you for the response. Would this doable to add some property to exclude shaders from screenshots?

jncsotk30 avatar Feb 03 '25 15:02 jncsotk30

not without a performance hit

vaxerski avatar Feb 04 '25 10:02 vaxerski

this is something i would like to see done as well, since i use screen shaders for lowering monitor brightness farther than the limit. it makes every screenshot i take very dark. This probably would fit more as a hyprland request than a grimshot issue though.

strawbberrys avatar Feb 21 '25 22:02 strawbberrys