I'm looking to write a simple script for my friend. I want to have a shortcut open that script in the terminal and ask him... "What game would you like to play?". The script would then replace Compiz with Metacity.... run that game command... and then, once the game is closed... it will restart compiz and exit the terminal.
Here is what I have written...
I'm not at a linux computer... so I don't know if it will work. Does this seem right, or should something be changed?Code:#!/bin/bash read -p "What game would you like to play?" GAME metacity --replace & $GAME compiz --replace exit
PS- I'm brand new to BASH scripting
Bookmarks