compton icon indicating copy to clipboard operation
compton copied to clipboard

Limit type of windows that get animated?

Open nkkollaw opened this issue 6 years ago • 15 comments

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.?

nkkollaw avatar Mar 15 '18 23:03 nkkollaw

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.

BlackCapCoder avatar Mar 16 '18 00:03 BlackCapCoder

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.

nkkollaw avatar Mar 16 '18 19:03 nkkollaw

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

BlackCapCoder avatar Mar 18 '18 19:03 BlackCapCoder

...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..?

nkkollaw avatar Mar 18 '18 21:03 nkkollaw

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 avatar Mar 20 '18 11:03 BlackCapCoder

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

BlackCapCoder avatar Mar 20 '18 11:03 BlackCapCoder

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 avatar Mar 20 '18 15:03 nkkollaw

...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?

nkkollaw avatar Mar 24 '18 10:03 nkkollaw

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

BlackCapCoder avatar Mar 24 '18 12:03 BlackCapCoder

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.

alexhulbert avatar Mar 28 '18 06:03 alexhulbert

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

nkkollaw avatar Mar 28 '18 08:03 nkkollaw

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

BlackCapCoder avatar Mar 28 '18 13:03 BlackCapCoder

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

nkkollaw avatar Apr 06 '18 23:04 nkkollaw

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"

BlackCapCoder avatar Apr 07 '18 14:04 BlackCapCoder

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

nkkollaw avatar Apr 08 '18 00:04 nkkollaw