hey guys, I made a simple script that boost Compiz by giving it less nice value. which helps for people like me with lousy Graphic cards (i.e, Intel !!) to reduce compiz laggs while doing heavy processing.
the script is targeted to be executed at init.d, so it'll run automatically after each restart. it takes only two steps to apply it:
Step 1: in terminal, write this:
Code:
gksu gedit /usr/bin/comboost
then copy and paste the following code in the text editor:
Code:
#!/bin/sh
compiz=$(pgrep compiz)
until [ "$compiz" != "" ];
do
compiz=$(pgrep compiz)
sleep 10
done
renice -10 -p $compiz
save and close, then in the terminal write this:
Code:
sudo chmod +x /usr/bin/comboost
Step 2: in the terminal write this:
Code:
sudo gedit /etc/init.d/rc
and before the last line (that says "exit 0") add this:
so finally it'll appear like this:
now you're done
you can execute it right away from terminal:
or restart your PC.
it should work with any linux distro.
enjoy..
Bookmarks