xiyaowong / transparent.nvim

Remove all background colors to make nvim transparent
806 stars 23 forks source link

How can I achieve blend transparency? #55

Closed Avishayy closed 10 months ago

Avishayy commented 10 months ago

Hey, I'm using Picom and Wezterm

I've seen someone having this image

and I'm wondering whether it's possible to have a blend transparency where I can tell to a specific highlight group how much it should blend (rather than be completely transparent)

Thank you!

xiyaowong commented 10 months ago

From my understanding of highlighting, only floating windows can control transparency through the winblend option. In this image, it is possible that the transparency feature provided by the terminal was used.

Avishayy commented 10 months ago

Apparently it's possible only on Picom's end (as far as I understand), by adding an opacity-rule to act on the WM_CLASS of the window (wezterm in this case)

opacity-rule = ["80:class_g = 'org.wezfurlong.wezterm'"]

Kind of a bummer I can't control the opacity of a specific highlight group

Avishayy commented 10 months ago

I'm closing this as using Picom's configuration works well, thank you anyway!