PDA

View Full Version : Compiz-Switch


Forlong
January 6th, 2008, 12:51 PM
I developed a simple program over the holidays called Compiz-Switch (http://forlong.blogage.de/article/pages/Compiz-Switch) that provides switching between Compiz and the window manager of your desktop environment on a single click.


I could only test this on Ubuntu, so if you'd like to have this for your distribution, I need your help.
Compiz-Switch makes use of compiz-manager (http://gitweb.compiz-fusion.org/?p=fusion/misc/compiz-manager), so if your distribution makes use of it too, I need to know name of it as well as the name of the actual binary.

In Ubuntu that's compiz for the manager and compiz.real for the binary.

As far as I know, Suse has it like this: compiz-manager and compiz
So this might work already: http://blogage.de/files/1365/download?compiz-switch-0.1.0-suse.tar.gz

s0l1dsnak3123
January 6th, 2008, 03:24 PM
That doesn't work for me - it just removes the window borders :/

Forlong
January 6th, 2008, 03:29 PM
Could you please post the output of
compiz-switch
in a terminal?

What desktop environment are you using?

s0l1dsnak3123
January 6th, 2008, 04:43 PM
snak3@snak3-desktop:~$ compiz-switch
compiz (core) - Fatal: GLX_EXT_texture_from_pixmap is missing
compiz (core) - Error: Failed to manage screen: 0
compiz (core) - Fatal: No manageable screens found on display :0.0


I'm using Gutsy, with gnome. I'm using an ATI 9550 card (is that the problem?), here is how I start compiz:


LIBGL_ALWAYS_INDIRECT=true compiz --replace --sm-disable --ignore-desktop-hints ccp &

and emerald:

emerald --replace


[edit] I think I know what the problem is >< I used the makefusion8 to install and I believe that is a GIT application

Compatibility

compiz-switch-0.1.0-ubuntu has been tested to work with:
Ubuntu (Studio) Feisty
Pre-installed Compiz / installed from the repository
Backported Compiz packages from Gutsy

Ubuntu Gutsy (pre-installed Compiz)
Kubuntu Gutsy (Compiz installed from the main repository)
Xubuntu Gutsy (Compiz installed from the main repository)

compiz-switch-0.1.0-ubuntu does not work with Compiz compiled from git.

Forlong
January 6th, 2008, 04:45 PM
Did you compile Compiz from source?

s0l1dsnak3123
January 6th, 2008, 06:08 PM
Yes, I think makefusion8 does compile (you see it saying: "running make" so it is safe to assume)

some-guy
January 7th, 2008, 12:28 AM
@Forlong (http://forum.compiz-fusion.org/member.php?u=686)
you know right, it would would work here if compiz-manager worked :D
BTW, I made an RPM with checkinstall :D
Will give the link in a minute...

EDIT: Get it here: http://somelinuxguy94.googlepages.com/compiz-switch-0.1.0-suse-1.noarch.rpm

Forlong
January 7th, 2008, 09:06 AM
you know right, it would would work here if compiz-manager worked :D
Why, what's wrong with it?

I plan on doing a version with (a patched version of) compiz-manager included so it would be suitable for people that compiled from (git) source.

Thanks for the rpm, maybe more people will test it this way.

some-guy
January 7th, 2008, 02:28 PM
Wait, there are some new instuctions on the SuSE wiki, I'll try that, but it's for Nvidia 169.07 driver :p
Don't worry about it, its my problem not yours :D

Forlong
January 8th, 2008, 04:52 PM
There's a version for Compiz compiled from source now: http://blogage.de/files/1382/download?compiz-switch-0.2.0~source.tar.gz
This should be distribution-independent.

Please let me know if you encounter any issues.

some-guy
January 8th, 2008, 05:21 PM
http://lifehacker.com/342161/toggle-compiz-effects-with-one-click
what do you know :D
But, they linked to some other blog :(
EDIT:BTW I got compiz-manager working, Compiz-Switch is great :D

Forlong
January 8th, 2008, 05:30 PM
I got compiz-manager working, Compiz-Switch is great :D
Awesome. :D
Did you use the Suse or the source version?


Hm... I don't even know this LifeHacker site... is it any good?

And yeah, it's not so wise to link the other blog because it will be outdated next time I do an update...

some-guy
January 8th, 2008, 05:45 PM
SuSE version :D
Lifehacker has all this stuff from Apps for windows, to DIYs, to apps for OSX, to apps for linux :D

WartHog
January 8th, 2008, 07:59 PM
Very nice. Works flawlessly here.
I used compiz-switch-0.2.0~ubuntu.tar.gz

Ubuntu Gutsy.

Forlong
January 9th, 2008, 08:59 PM
Thanks for testing.

There's now a deb available. :)