feat: add color-key transparency#479
feat: add color-key transparency#479CyberShadow wants to merge 3 commits intoWillPower3309:masterfrom
Conversation
Implemented as more of a color search-and-replace feature. This allows enabling a transparent background on apps which are not alpha-aware - pick an unlikely color to use as the background, then configure SwayFX to remap it to another color with an alpha value. Requires wlrfx/scenefx#160.
|
can you show any examples and how you're using it? |
|
Sure! In my config, I added: Then, e.g. in Emacs: Or in Firefox: Besides the Sway support, none of this is original - it's the same idea that people have been doing with e.g. picom's |
|
ah sorry, i wasn't being clear, i understand how to use it, i meant if you could include screenshots, I am worried that with subpixel rendering text might look really weird also could you disclose if you used AI for this PR |
Sure. However, the results are also going to be the same as with existing software implementing this technique (which was the goal). Here's what my Firefox looks like:
(normally websites' backgrounds are opaque, but Kagi coincidentally uses the exact same color) and Emacs:
It's mostly unchanged from my 2017 setup with i3+compton: https://blog.cy.md/2017/04/24/rice/
Yes, the patch is drafted by Claude Opus 4.5. |


Implemented as more of a color search-and-replace feature.
This allows enabling a transparent background on apps which are not alpha-aware - pick an unlikely color to use as the background, then configure SwayFX to remap it to another color with an alpha value.
Requires wlrfx/scenefx#160.