Skip to content
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

add opacity-exclude? #260

Open
ljrk0 opened this issue Jan 2, 2015 · 8 comments
Open

add opacity-exclude? #260

ljrk0 opened this issue Jan 2, 2015 · 8 comments

Comments

@ljrk0
Copy link

ljrk0 commented Jan 2, 2015

UPDATE/SUMMARY:

Is it possible to add opacity-exclude? As you said, opacity-rule may break EWMH, but would a opacity-exclude do so, too?

It would make the scenario I described below possible without breaking EWMH.


Hello,

I've searched through many issues hear but don't find a more or less suitable solution. Maybe I just was blind.

What my problem is, is that I want to specify to which windows the transperency settings should be applied or sth. similar.
just doing

opacity-rule = [ "80:name *='NAME'" ];

does not do the trick as I want compton to distinguish between active and inactive. Is this possible?

Or do I need to make a list of all GUI-Apps I use and set their transperency to 99 via opacity rule (or via focuse-exclude)? (I don't use that many GUI-Apps anyhow)

@ljrk0
Copy link
Author

ljrk0 commented Jan 2, 2015

I have to say, I was dumb ;-)
There is such an easy solution to this (whoevery may wants to read this):

opacity-rule = [ "80:name ='leonard' && !focused", "100:name='leonard' && focused"]

and "standard" opacity just to 1.

Maybe there's a more easy solution to this. Let me hear, if it isn't time consuming for you. Else, just close the issue ;-)

@richardgv
Copy link
Collaborator

Sorry for the late reply, firstly.

An alternative solution is something like -i 0.5 + --focus-exclude '! class_g = "Firefox"', or if you have more one application to match, --focus-exclude '!(class_g = "Firefox" || class_g = "URxvt")'.

Honestly I didn't realize --opacity-rule could be used in that way... :-D Be careful, it breaks _NET_WM_WINDOW_OPACITY support, if the application, WM, or some other tools try to set it.

@ljrk0
Copy link
Author

ljrk0 commented Jan 11, 2015

UPDATE:

Sadly, with focus-exclude I can't set opacity for focused windows to 0.9 without making every window
transparent.
Thus I need to stick with opacity-rule :/


I'm on i3, so I hope there's no app that might do that^^. I'll try your solution though, it seems to be more "clean".
Does focus-exclude affect the performance (like transperency is rendered but just not displayed, as app is on exlude list)?

Anyway, thanks for the reply, I don't think it you are to blame for a late one ;-). I understand it when one is not always too interested in reading through the issues :P

@ljrk0 ljrk0 changed the title specify window for transperency focus-exclude + detect-client-leader=true misbehaviour? Feb 4, 2015
@ljrk0 ljrk0 changed the title focus-exclude + detect-client-leader=true misbehaviour? add opacity-exclude? Feb 22, 2015
@ljrk0
Copy link
Author

ljrk0 commented Feb 22, 2015

I deleted the updates as they resolved themselves after updating to the latest git version.

@richardgv
Copy link
Collaborator

I would prefer you to avoid adding important information to an already-published post, unless you explicitly mention your changes in a new reply. It's just too easy to miss your modifications to the body of the issue.

Does focus-exclude affect the performance (like transperency is rendered but just not displayed, as app is on exlude list)?

No. A (transparent, or opaque) window is rendered only if it's going to be displayed.

Sadly, with focus-exclude I can't set opacity for focused windows to 0.9 without making every window transparent.

Well, that's true. I would recommend against making focused window semi-transparent, by the way: It's more often a distraction/annoyance.

Is it possible to add opacity-exclude? As you said, opacity-rule may break EWMH, but would a opacity-exclude do so, too?

Sorry, I don't really understand what --opacity-exclude is...

@ljrk0
Copy link
Author

ljrk0 commented Feb 24, 2015

I would prefer you to avoid adding important information to an already-published post, unless you explicitly mention your changes in a new reply. It's just too easy to miss your modifications to the body of the issue.

No problem, won't do it again ;-)

Well, that's true. I would recommend against making focused window semi-transparent, by the way: It's more often a distraction/annoyance.

Not for me ;-).

Sorry, I don't really understand what --opacity-exclude is...

As mentioned in the OP (I added it afterwards, won't do so again ^^):
I want to have active terminals have opacity 0.9, inactive terminals 0.7.
This is only possible (yet?) with opacity-rule - but this breaks _NET_WM_WINDOW_OPACITY support.
So I propose a opacity-exclude so you can have something like that:

inactive-opacity = 0.7;
active-opacity = 0.9;
opacity-exlude = [ "class_g = 'SOMETERMINAL'" ];

to make the same things happen - but (maybe?) without breaking _NET_WM_WINDOW_OPACITY.
Additionally it makes it all more consistent, as we already have shadow-exlude, fade-exclude, focus-exclude, etc.

@agauniyal
Copy link

opacity-exclude: Status?

llitz added a commit to llitz/compton that referenced this issue Aug 10, 2018
When inactive-opacity is enabled, you can override the opacity by using opacity-rule.

By default, all windows have 100 opacity and, if it is still at 100,
inactive-opacity will be applied when the window loses focus. This
patch adds a new bool opacity_disabled to win struct and verify this
variable before deciding if it should be excluded from inactive-opacity

Fix 99% transparency problems on chjj/compton#450 chjj/compton#433
chjj/compton#403 chjj/compton#367 chjj/compton#260 chjj/compton#182
chjj/compton#158
llitz added a commit to llitz/compton that referenced this issue Aug 10, 2018
When inactive-opacity is enabled, you can override the opacity by using opacity-rule.

By default, all windows have 100 opacity and, if it is still at 100,
inactive-opacity will be applied when the window loses focus. This
patch adds a new bool opacity_disabled to win struct and verify this
variable before deciding if it should be excluded from inactive-opacity

Fix 99% transparency problems on chjj/compton#450 chjj/compton#433
chjj/compton#403 chjj/compton#367 chjj/compton#260 chjj/compton#182
chjj/compton#158
@yshui
Copy link

yshui commented Aug 11, 2018

@agauniyal Hello, with yshui/picom@30c14c0 (i.e. the opacity branch), you should be able to set opacity to 100 with opacity-rule. If you can try that and report back, that will be much appreciated.

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

No branches or pull requests

4 participants