-
-
Notifications
You must be signed in to change notification settings - Fork 8
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
Screenshot ... *without shader* #22
Comments
Yep this happens to me all the time. I have a keybind in my Hyprland config that toggles the shader on/off with If you want it automated, you can probably do something like:
...or do something similar in a script. Edit: here's something a bit more robust that I added to my screenshot script: restore_shader() {
if [ -n "$shader" ]; then
hyprshade on "$shader"
fi
}
save_shader() {
shader=$(hyprshade current)
hyprshade off
trap restore_shader EXIT
}
save_shader
# ...rest of screenshot script... |
Is there a way to record without without turning off shaders entirely? I want to keep my blue light filter on, but I don't want gpu-screen-recorder/ffmpeg to capture the shader's effects. (e.g. recording, streaming) If not, are there other blue light filter options that offer similar resolve for this issue, at least in hyprland? |
Hey, just a minor issue/request.
I would like to be able to take screenshots (currently using
grim
andslurp
) in such a a way that the shader isn't present.I saw that at one point this was behavior and it was "fixed" so I can understand if my request seems backwards. It would be nice because if you send the screenshot to someone that also has a filter on then they'll see the images as extra yellow due to the stacked filters. Overall keeping the filter applied on the screenshots is just a destructive operation and removes the true colors from the underlying image.
I do have a simple workaround so it's not thaat big of an issue, so it's just a nice-to-have:
hyprshade off && grim -g "$(slurp)" - | xsel -b && hyprshade on blue-light-filter.glsl
Thanks for making hyprshade.
The text was updated successfully, but these errors were encountered: