Thanks for the script, it's just perfect! I'm using an awn too but the latest version doesn't disappear without compositing.
I tried to put your code inside an bash script that creates your one:
Code:
#!/bin/bash
#Creating "playgame" script in /usr/games
cat > ~/playgame <<EOF
#!/bin/bash
if [ $# -lt 1 ]; then
echo "Usage: playgame game_name game_options" 1>&2
exit
fi
# Replace compiz with metacity to prevent issues
metacity --replace &
# Run game
$@
# Replace metacity with compiz
compiz --replace
EOF
sudo cp ~/playgame /usr/games/
sudo chmod +x /usr/games/playgame
exit
but in the end the actual file is missing essential fragments:
#!/bin/bash
if [
0 -lt 1 ]; then
echo "Usage: playgame game_name game_options" 1>&2
exit
fi
# Replace compiz with metacity to prevent issues
metacity --replace &
# Run game
?!
# Replace metacity with compiz
compiz --replace
Can someone suggest a solution to my problem
Bookmarks