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
Monochrome / Grayscale effect #530
Comments
The --glx-fshader-win argument allows this using a suitable GLSL shader, but it's being deprecated. Maybe it's not the cleanest way, but some code from the GLSL shader interpreter bundled with a hard-coded (or externalized but included with e.g. binary packages) grayscale shader could be used to implement monochrome? |
@sainathadapa I used what kmfrick recommended (in case it's helpful, I included my code at the end. To give credit where it is due, I think I found a variant of it on some blog/reddit (that I can't find again), it calculates the Rec 601 Luma from HSL as its monochrome formula. I find it relatively nice to look at for most things (I also found that inverted BW (insert a @kmfrick I'm sad to hear that it's deprecated, I really love this feature. Can you say any more about how I would go about continuing to use it? Are you saying I could hardcode this GLSL shader into my build of compton (so I just can't pass it as an argument) or is there a file where I could hardcode this formula in/include an external shader? It might be only Thanks! Main shell script: GSLS:
|
how might you use this to make an inactive window grayscale? |
Is it possible to add grayscale effect to specific windows, or the whole display? I can also try helping with the feature, if someone can point me to section where effects like this go.
The text was updated successfully, but these errors were encountered: