Changes between Version 3 and Version 4 of compiz


Ignore:
Timestamp:
01/30/2008 06:50:05 AM (14 years ago)
Author:
DJ Lucas
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • compiz

    v3 v4  
    99A full Compiz Fusion installation consists of many packages that must be installed to have a fully working setup.
    1010
    11 '''WARNING:''' These instructions are a preliminary writeup for structure of the page.  You should review the output of configure for each package and most likely install to a DESTDIR prior to a final installation to make sure everything goes where it should.  Only the build order is correct here for now.
     11'''WARNING:''' These instructions are a preliminary writeup for structure of the page.  You should review the output of configure for each package and most likely install to a DESTDIR prior to a final installation to make sure everything goes where it should.  Only the build order is correct for now...Fell free to correct them if you go through the setup.
    1212
    1313=== Installing compiz-0.6.2 ===
     
    144144
    145145----
     146== Configuring Xorg for Compiz ==
     147
     148Gentoo's wiki is already great for this task, no need to repeat it here.  Refer to the links in the Prerequisites section for your video card.  Some Intel, most AMD, and most nVidia cards are supported at the time of this writing.
     149
     150[http://gentoo-wiki.com/HOWTO_compiz-fusion]
     151
     152----
     153
     154== A couple of helper scripts ==
     155
     156'''Rotate Desktop on init'''
     157
     158I've experienced a minor annoyance that I've yet to find a 'fix' for.  I run ATI Radeon 9200 with the open source ATI driver from Xorg.  I don't know if it's related to the experimental drivers or not.  Anyway, when starting compiz, sometimes...not always...the windows refuse to refresh until I switch desktops once.  Though the dbus hooks are probably a better way to handle this little bug, I wrote a simple Java app to switch desktops for me on initialization...just because I like Java and it took me about 2 minutes to write it.
     159
     160
     161{{{
     162mkdir ~/robottemp &&
     163cd ~/robottemp &&
     164cat > RobotRotate.java << "EOF" &&
     165// SendKeys for X in java ;-)
     166// This little tidbit was inspired by this one:
     167// -http://www.java-tips.org/java-se-tips/java.awt/how-to-use-robot-class-in-java.html
     168
     169import java.awt.AWTException;
     170import java.awt.Robot;
     171import java.awt.event.KeyEvent;
     172
     173public class RobotRotate {
     174
     175     public static void main(String[] args) {
     176
     177        try {
     178
     179            Robot robot = new Robot();
     180            // Give 3 seconds for the WM to start
     181            robot.delay(3000);
     182            robot.keyPress(KeyEvent.VK_ALT);
     183            robot.keyPress(KeyEvent.VK_CONTROL);
     184            robot.keyPress(KeyEvent.VK_LEFT);
     185            robot.keyRelease(KeyEvent.VK_LEFT);
     186            // Wait a half second for screen to rotate completely
     187            robot.delay(500);
     188            robot.keyPress(KeyEvent.VK_RIGHT);
     189            robot.keyRelease(KeyEvent.VK_RIGHT);
     190            robot.keyRelease(KeyEvent.VK_CONTROL);
     191            robot.keyRelease(KeyEvent.VK_ALT);
     192
     193        } catch (AWTException e) {
     194            e.printStackTrace();
     195        }
     196    }
     197}
     198EOF
     199javac RobotRotate.java &&
     200cp RobotRotate.class </usr/lib/classpath/>
     201}}}
     202
     203'''Start Compiz'''
     204
     205{{{
     206cat > /usr/bin/compizon << "EOF" &&
     207#!/bin/sh
     208##### MAKE SURE YOU FIRE UP ccsm AND SET WINDOW DECORATOR TO /usr/bin/emerald
     209##### ELSE YOU WILL HAVE NO WINDOWS BORDERS. 
     210##### Also, enable cube so that the Rotate app works correctly.  Your desktop
     211##### will roll left and then right again when Compiz starts to circumvent the
     212##### bug if you need to use it.
     213LIBGL_ALWAYS_INDIRECT=1 /usr/bin/compiz --replace --indirect-rendering ccp &
     214# or if using XGL
     215# /usr/bin/compiz --replace cpp &
     216
     217# Uncomment this if you get the intermittent bug mentioned above
     218# java RobotRotate
     219# or optionally use dbus-send to send dbus events to cube extension
     220}}}
     221
     222'''Stop Compiz'''
     223
     224{{{
     225cat > /usr/bin/compizoff << "EOF" &&
     226#!/bin/sh
     227/usr/bin/metacity --replace
     228# or if using KDE...donno if this is correct, haven't used it in a while ???
     229# /path/to/kde/bin/konquerer --replace &
     230java RobotRotate
     231}}}
     232----
    146233
    147234