Zenity: GUIfy your shell scripts
Zenity is an awesome tool that can be used to add simple guis to your shell scripts.
There isn’t much of a homepage so check your repositories!
Although documentations is a bit thin on the ground it is quite easy once you get the hang of it. As an example here is a very quick and horrible scripts that acts as a basic game launcher.
#!/bash/sh
Game=`zenity –list –column Games –text “Would you like to play a game” “Enemy territory” “Savage”`
if [ “$Game” == “Enemy territory” ]
then etelif [ “$Game” == “Savage” ]
then savage
fi
Although that script is horrible it only tries to give you a simple example of how zenity can be used.
Remember that the zenity man page and zenity –help are there to help you!
George Bunyan
Related Stories
POSTED IN: General
0 opinions for Zenity: GUIfy your shell scripts
No one has left a comment yet. You know what this means, right? You could be first!
Have an opinion? Leave a comment: