switch-compiz.sh -

switch-compiz.sh is a script that lets you to switch from compiz to metacity and viceversa just in a click.
switch-compiz.sh is a script that lets you to switch from compiz to metacity and viceversa just in a click.

#!/bin/sh
USE_XCOMPMGR=FALSE #change to TRUE if you want to use normal composite
composite_params='-c -r3.5 -o.45 -l-5 -t-4'
if [ `ps -A | grep metacity | wc -l` == "1" ]; then
gconftool-2 -s -t int /apps/metacity/general/num_workspaces 1 &
sleep 0.5
if [ `ps -A | grep xcompmgr | wc -l` == "1" ]; then
killall -9 xcompmgr &
fi
killall -9 metacity &&
compiz --use-cow --replace gconf &
gtk-window-decorator &
else
killall -9 compiz && killall -9 gtk-window-decorator && gconftool-2 -s -t int /apps/metacity/general/num_workspaces 4 &&
if [ "$USE_XCOMPMGR" = "TRUE" ]; then
xcompmgr $composite_params &
fi
metacity &
fi

Usage:

- Copy the code above and paste it into a text editor (Gedit or Kate) and save it as switch-compiz.sh on your desktop.
- make it executable with:

chmod +x switch-compiz.sh

last updated on:
March 5th, 2007, 21:05 GMT
price:
FREE!
developed by:
Andrea Cimitan
homepage:
cimi.netsons.org
license type:
GPL (GNU General Public License) 
category:
ROOT \ Utilities
switch-compiz.sh
Download Button

In a hurry? Add it to your Download Basket!

user rating

UNRATED
0.0/5
 

0/5

Rate it!

Add your review!

SUBMIT