Articles by "effects disable automatically"
Showing posts with label effects disable automatically. 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:
if ps -A | grep compiz > /dev/null ; then
echo "Warning: Compiz Detected!!!"
metacity --replace > /dev/null &
echo "Starting"
echo "Finish"
if $COMP ; then
echo "Warning: Starting Compiz!!!"
compiz --replace > /dev/null &
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)