b5media.com

Advertise with us

Enjoying this blog? Check out the rest of the Technology Channel Subscribe to this Feed

New Linux User

Zenity: GUIfy your shell scripts

by George Bunyan on October 23rd, 2006

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 et

elif [ “$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

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:




Check Spelling
Activate Spell Check while Typing
Site Meter
Close
E-mail It