SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2009-02-27 04:52:05

taintedsushi
#! CrunchBanger
Registered: 2009-02-09
Posts: 112

Compositing

Is there any way to change the behavior of compositing effects?  Removing the fade effect perhaps or adding other compositing features?

Cheers.

Offline

Help fund CrunchBang, donate to the project!

#2 2009-02-27 05:13:34

wench
#! CrunchBanger
From: Darlington, Co Durham
Registered: 2008-12-05
Posts: 136
Website

Re: Compositing

gnome-settings-visualeffects has some control over it I believe, i'm not entirely sure how much though...

Offline

#3 2009-02-27 10:07:30

scythe
New Member
Registered: 2009-02-27
Posts: 1

Re: Compositing

#!/usr/bin/perl -w

# This script is written by Andrei Perhinschi
# and is licensed under the GNU GPL license
# http://www.gnu.org/licenses/gpl.html

# Much thanks goes to Daniel Forchheimer (http://www.forchheimer.se/)
# for creating transset-df and the eutotrans
# script from which this script gets its inspiration

if ( !defined $ARGV[0] || !defined $ARGV[1] || !defined $ARGV[2] ) {
die "Usage: focustran <unfocused value> <focused value> <refresh value (secs)>\n";
}

# default values
$trans_val = $ARGV[0];
$opaque_val = $ARGV[1];
$sleep_val = $ARGV[2];

# grab all window IDs
@win_ids = `xwininfo -root -all`;
foreach my $win_id ( @win_ids ) {
unless ( $win_id =~ /has\ no\ name/ || $win_id !~ /0x/ || $win_id =~ /Desktop/ ) {
 $win_id =~ /\ \"/;
 $win_id = "$`";
 $win_id =~ s/\s//g;
 push @id_lines, $win_id;
 }
}

print "ID_LINES:@id_lines\n";

# make all windows transparent
foreach my $win_id ( @id_lines ) {
system ( "transset-df --id $win_id $trans_val" );
}

$old_id = 0;
# get currently focused window's ID
while ( 1 ) {
my $active_id = `xprop -root  | grep "_NET_ACTIVE_WINDOW(WINDOW): window id # "`;
$active_id =~ /\#\s/;
$active_id = "$'";
chomp $active_id;
# set active window to opaque_val and old window to trans_val
if ( $old_id ne $active_id ) {
 system ( "transset-df --id $active_id $opaque_val" );
 system ( "transset-df --id $old_id $trans_val" );
 }
$old_id = $active_id;
print "active_ID:$active_id\n";
select ( undef, undef, undef, $sleep_val );
}

Last edited by scythe (2009-02-27 10:09:01)

Offline

#4 2009-02-27 16:03:36

corenominal
WRONG
From: Lincoln, UK
Registered: 2008-11-20
Posts: 5,131
Website

Re: Compositing

man xcompmgr

Offline

#5 2009-02-27 22:15:03

taintedsushi
#! CrunchBanger
Registered: 2009-02-09
Posts: 112

Re: Compositing

Thanks,

That helps alot   \^_^/

Offline

#6 2009-02-28 19:11:34

taintedsushi
#! CrunchBanger
Registered: 2009-02-09
Posts: 112

Re: Compositing

Here's probably a stupid question ...

Why do I sometimes see a bunch of static like you're changing the TV channel before a dialog or popup appears? Only happens with composting on.  I noticed also with compiz as well under ubuntu.

Offline

#7 2009-02-28 19:13:13

iggykoopa
Script Master
Registered: 2008-12-13
Posts: 1,486

Re: Compositing

I get that with the default compositing settings used by #! as well, haven't bothered to see which effect is causing it but if I just manually launch xcompmgr I don't have the static.


I say never be complete, I say stop being perfect, I say lets evolve, let the chips fall where they may.

Offline

#8 2009-02-28 19:17:11

taintedsushi
#! CrunchBanger
Registered: 2009-02-09
Posts: 112

Re: Compositing

Hmmm...Interesting.  I launch it from autostart.sh and still get it.  Maybe it has something to do with what effects are being used or one of the command line settings.  What launch string are you using?

Offline

#9 2009-02-28 19:30:42

iggykoopa
Script Master
Registered: 2008-12-13
Posts: 1,486

Re: Compositing

if your using the default autostart setting it is using the #! settings:

xcompmgr -cCfF -t-5 -l-5 -r4.2 -o.55 -D6

I just launch:

xcompmgr

and I don't get the bad effects, need to see which effect is causing it.

edit: if you still want to use the crunchbang launcher you can edit /usr/bin/crunchbang/xcompmgr-crunchbang to change the settings there

edit again: testing it out and I realized it still does it, just with the default settings it's fast enough I didn't notice before

Last edited by iggykoopa (2009-02-28 19:41:17)


I say never be complete, I say stop being perfect, I say lets evolve, let the chips fall where they may.

Offline

#10 2010-02-19 11:39:26

tawan
#! Junkie
Registered: 2009-01-30
Posts: 385
Website

Re: Compositing

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.
Server: bleh

Debian Logo