Skip to content
This repository has been archived by the owner on May 8, 2021. It is now read-only.

attempt to add back true transparency support #191

Closed
thestinger opened this issue Sep 30, 2014 · 18 comments
Closed

attempt to add back true transparency support #191

thestinger opened this issue Sep 30, 2014 · 18 comments

Comments

@thestinger
Copy link
Owner

AFAIK this is supported by VTE again, although it works differently.

@terminalmage
Copy link

👍

@stobenski
Copy link

👍 👍

@psivesely
Copy link

👍👍👍

@kolibry
Copy link

kolibry commented Oct 23, 2014

Hey,

Can you explain what you mean by "works differently" ? My termite has lost transparency support and there is no way to get it back. Thanks for this great app BTW ! :)

@thestinger
Copy link
Owner Author

VTE dropped support for both pseudo-transparency and true transparency. However, it may now support it again via alpha channels in the color scheme if it's set up properly. It's not a feature I care about so looking into it isn't a priority for me.

@lachesis
Copy link

It's pretty easy to get support for this through compositing if you're interested. Example compton config:

echo 'opacity-rule = ["85:class_g = 'Termite'"];' >> ~/.compton.conf
compton -b --config ~/.compton.conf

@thestinger
Copy link
Owner Author

@lachesis: That's not the same as an alpha channel for the background, which doesn't make the text in the foreground transparent.

tomjakubowski added a commit to tomjakubowski/termite that referenced this issue Oct 27, 2014
Getting the screen's visual and setting it on the window is all that's
needed for VTE's new transparency support.

Fix thestinger#191
tomjakubowski added a commit to tomjakubowski/termite that referenced this issue Oct 27, 2014
Getting the screen's visual and setting it on the window is all that's
needed for VTE's alpha channel support.

Fix thestinger#191
@thestinger
Copy link
Owner Author

There's support for true transparency again in master. You can define the background as transparent by adding an alpha channel like background = rgba(0, 0, 0, 0.5). It should also work with the foreground colors.

@terminalmage
Copy link

Tested, works. Thanks! 👍

@kolibry
Copy link

kolibry commented Oct 27, 2014

Thanks, long life to termite :)

@bchretien
Copy link

Nice, thanks! 👍

@ghost
Copy link

ghost commented Nov 1, 2014

does not work for me :/ this is how looks my config file:

[colors]
transparency = 0.3
#pseudo_transparency = true
foreground = #839496
foreground_bold = #fedfed
foreground_dim = #888888
background = rgba(0, 0, 0, 0.3)
#cursor = #dcdccc

@thestinger
Copy link
Owner Author

@drrok: Do you have a compositor running?

@ghost
Copy link

ghost commented Nov 1, 2014

@thestinger: after you post i install compton, but transparency only work with this line ( opacity-rule = ["85:class_g = 'Termite'"]; ) in config file.

@thestinger
Copy link
Owner Author

@drrok: Are you using master or version 9? It won't work with the old version 8.

@thestinger
Copy link
Owner Author

A compositor transparency setting for the window isn't really comparable anyway, because it makes everything transparent rather than just the background.

@ghost
Copy link

ghost commented Nov 1, 2014

@thestinger: thanks for help ;) i still working on the 8.1 - after update everything is ok

@Yutsuten
Copy link

Sorry for the necroposting, but seems that transparency does not work for colorN options.
On background it indeed work, though.

foreground = rgb(131, 148, 150)
foreground_bold = rgb(131, 148, 150)
cursor = rgb(131, 148, 150)
cursor_foreground = rgba(0, 43, 54, 0.9)
background = rgba(0, 43, 54, 0.9)

color0 = rgba(7, 54, 66, 0.95)
color1 = rgb(220, 50, 47)
color2 = rgb(133, 153, 0)
color3 = rgb(181, 137, 0)
color4 = rgb(38, 139, 210)
color5 = rgb(211, 54, 130)
color6 = rgb(42, 161, 152)
color7 = rgb(238, 232, 213)
color8 = rgba(0, 43, 54, 0.9)
color9 = rgb(203, 75, 22)
color10 = rgb(88, 110, 117)
color11 = rgb(101, 123, 131)
color12 = rgb(131, 148, 150)
color13 = rgb(108, 113, 196)
color14 = rgb(147, 161, 161)
color15 = rgb(253, 246, 227)

My use case: I like to have transparency on my neovim, and it uses colorN settings instead of background.

Tested on Arch Linux.

$ termite --version
termite v15

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants