What is Zenity?
zenity is a program that will display GTK+ dialogs, and return (either in the return code, or on standard output) the users input. This allows you to present information, and ask for information from the user, from all manner of shell scripts.
For example, zenity --question will return either 0, 1 or 5, depending on whether the user pressed OK, Cancel or timeout has been reached. zenity --entry will output on standard output what the user typed into the text entry field.
Lets see some major & special zenity commands
Options in Zenity:
1.man zenity : By using this command one can easily find the commands inside the zenity.
2.zenity --error text="ERROR"
3.zenity --color-selection yellow
4.zenity --progress
5.zenity --question --text="Are you sure you want to exit?
6.zenity --info --title="COFFE-MACHINE" --window-icon="/index.jpg" --text="let's take a break"
7.zenity --list --radiolist --text="choose your gender" --hide-header --column "Select" --column "gender" FALSE "MALE" FALSE "FEMALE"
Comments