svenstaro / wmfocus

Visually focus windows by label
MIT License
223 stars 20 forks source link

Transparency (opacity) does not work #167

Open enterit opened 2 years ago

enterit commented 2 years ago

I've tried the example from README, it does not work - produces non-transparent background.

wmfocus --textcolor red --textcoloralt "#eeeeee" --bgcolor "rgba(50, 50, 200, 0.5)"

My i3 version:

$ i3 --version
i3 version 4.14.1 (2017-09-24) © 2009 Michael Stapelberg and contributors

Could you please clarify how/when opacity from CSS-like color should work?

wmfocus will make use of a compositor to get real transparency

What does 'compositor' mean? Are there environments where it is not supposed to work, or does 'compositor' have any limitations?

svenstaro commented 2 years ago

What's your desktop environment like? You need something like Compton or xcompmgr on xorg. In Wayland it should just work as is.

enterit commented 2 years ago

Oh, you're right, Compton fixed the issue. Thank you!

I use X11, and apparently I did not have any compositor.

enterit commented 2 years ago

I've also noticed that background opacity also affects text opacity. Is this by design? What do you think about an option to specify background and text opacity independently?

svenstaro commented 2 years ago

I think that'd be a cool option indeed, didn't consider that. I think it might be a fairly easy fix. Wanna try?