Results 1 to 3 of 3

Thread: Toggle XGL/Compiz on/off the easy way!!

  1. #1
    Join Date
    May 2006
    Beans
    30

    Toggle XGL/Compiz on/off the easy way!!

    Just doing my part. I came up with this script after days of searching the forums. I took like 8 different threads and rolled them all in to one for this easy Fix. This was written to go along with Poofyhairguy's How-to, Enjoy.

    Step 1:

    Put this command in the terminal:

    Code:
    gedit toggle_compiz.bash
    Step 2:
    Copy this into the empty file:


    Code:
    #!/bin/bash
    #
    # Checks to see if process "compiz.real" is running.
    # If it is, it will kill it.
    # If it isn't, it will start it.
    #
    # By Ubuntu Community
    
    if ps -A | grep -e " compiz.real$" > /dev/null; then
        killall gnome-window-decorator
        metacity --replace &
    
    else
            thefuture
            
    fi
    Step 3:
    Now save the file to your home folder. Close gedit. Put this command in the terminal:

    Code:
    sudo mv toggle_compiz.bash /usr/bin/
    Then this:

    Code:
    sudo chmod +x /usr/bin/toggle_compiz.bash
    Then right click on gnome panel and add a shortcut, choose custom launcher in the menu and add:

    Code:
    /usr/bin/toggle_compiz.bash
    in the command field. You can make a desktop launcher by right clicking on the desktop, choosing “create launcher” then use the same command.

    Now each time you click on the icon compiz & XGL are toggled on/off! This is essential and its the only way around many bugs.

    Note: If you did'nt create a script to lauch XGL/Compiz then replace:

    Code:
     else
            thefuture
    with:
    Code:
    else
                gnome-window-decorator &  compiz --replace gconf decoration wobbly fade minimize cube rotate zoom scale move resize place switcher &

  2. #2
    Join Date
    May 2005
    Beans
    Hidden!

    Re: Toggle XGL/Compiz on/off the easy way!!

    Probably a nice app, but I preferr this one: http://www.compiz.net/viewtopic.php?id=1170

  3. #3
    Join Date
    Feb 2005
    Location
    Canada
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Toggle XGL/Compiz on/off the easy way!!

    Personally I like this, unfortunately I have to make use of it way too much
    Last edited by gmc; January 7th, 2007 at 04:45 PM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •