BlackCapCoder / compton

A compositor for X11.
Other
98 stars 3 forks source link

Limit type of windows that get animated? #4

Open nkkollaw opened 6 years ago

nkkollaw commented 6 years ago

All windows seem to get animated, including tooltips and other small elements that aren't properly windows.

Is there a way to specify the type of windows that get animated, being able to exclude tooltips, panels, etc.?

BlackCapCoder commented 6 years ago

No, but it totally should be. Compton actually has a option for this called wintypes where you can override fade, shadow and opacity based on window type.

nkkollaw commented 6 years ago

So, your fork should use wintypes as well, right..?

That would be a very nice addition to make this usable on a day-to-day basic.

Personally, I'm trying to enhance Xfce because it's nice and all, but a little animation helps a lot in figuring out what is going on with the UI.

BlackCapCoder commented 6 years ago

Yes, I obviously want to integrate with existing compton features whenever possible.

nkkollaw commented 6 years ago

...I was also thinking about the problem, and was wondering if instead of adding to Compton, it would be ppssible to create a script that works on top of Compton and just takes care of the animation..?

BlackCapCoder commented 6 years ago

Not without scripting support in compton I'm afraid. Compton is using the X-server API to register as a composite manager and to do its rendering, and as far as I know X only has a C API. If slightly worse performance is acceptable to you you might like another composite manager called Ortle. Its codebase is really clean and well written, so hacking it is a breeze.

BlackCapCoder commented 6 years ago

I pushed a version I made with window transitions in case you'd like to try it: https://github.com/BlackCapCoder/ortle

nkkollaw commented 6 years ago

Ha! Yes, very cool.

It does has some problems, like my Xfce panel disappears when I launch it, but it's really cool.

I get right now there is no solution :-/

nkkollaw commented 6 years ago

...your fork of ortle seems very promising, though. Is there any way that you know of to add shadows to that instead of fixing Compton?

BlackCapCoder commented 6 years ago

Let's continue this discussion on the ortle fork: https://github.com/BlackCapCoder/ortle/issues/1

alexhulbert commented 6 years ago

Has this issue been dropped in favor of the ortle fork? I'd still love to see this feature in your compton fork. With spawn-center disabled and transition-length turned down, compton is stable enough for me to use the features of this fork on my main laptop. However, in order for the transitions to not be annoying on things like tooltips, I'd have to turn it off for a few window classes and window_types.

nkkollaw commented 6 years ago

@alexhulbert I don't think so, @BlackCapCoder was just generously trying to help me out by finding an alternative solution.

BlackCapCoder commented 6 years ago

@alexhulbert No, I'll get to it eventually, but anything in compon happens at a snails pace unfortunately.

nkkollaw commented 6 years ago

@alexhulbert : how do you do "spawn-center disabled and transition-length turned down"..?

BlackCapCoder commented 6 years ago

Add it to ~/.config/compton.conf

spawn-center = false
transition-length = 150

There is also a confirmed issue if you don't have backend = "glx"

nkkollaw commented 6 years ago

...people seem to want this feature: https://github.com/chjj/compton/issues/231/. There is also a reference to this fork :-)