Articles by "turn off compiz"
Showing posts with label turn off compiz. Show all posts
Automatically Compiz Effects disable when game starts on Linux (Ubuntu, Kubuntu, Xubuntu, Mint, and other versions)

First of all you need to create an empty directory in the following location and directory name should be "game" and location under /usr/bin/

Now with touch command make it executable, Enter the following command in the terminal (press Alt+F2 and type: gnome-terminal) and copy the command in terminal:




open it in text editor enter the command in terminal:




Now paste the following code in the text editor file:
#!/bin/bash
COMP="false";
if ps -A | grep compiz > /dev/null ; then
echo "Warning: Compiz Detected!!!"
metacity --replace > /dev/null &
COMP="true"
fi
echo "Starting"
$1
echo "Finish"
if $COMP ; then
echo "Warning: Starting Compiz!!!"
compiz --replace > /dev/null &
fi
exit
Save the file and close.

Before run the game just type in terminal:



Place game name with extension in the place of (game_name.extension)