Zenity — Command In Linux
What is Zenity Command ?
DESCRIPTION
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.
SYNOPSIS :- zenity [options]
Dialog options
— calendar
Display calendar dialog
— entry
Display text entry dialog
— error
Display error dialog
— file-selection
Display file selection dialog
— info :- Display info dialog
— progress
Display progress indication dialog
— notification
Display notification
— question
Display question dialog
— text-info
Display text information dialog
— warning
Display warning dialog
— scale
Display scale dialog
— color-selection
Display color selection dialog
— password
Display password dialog
— forms
Display forms dialog
General options
— title=TITLE
Set the dialog title
— window-icon=ICONPATH
Set the window icon with the path to an image. Alternatively,
one of the four stock icons can be used: ‘error’, ‘info’, ‘ques‐
tion’ or ‘warning’
— width=WIDTH
Set the dialog width
— height=HEIGHT
Set the dialog height
— timeout=TIMEOUT
Set the dialog timeout in seconds
Calendar options
— text=STRING
Set the dialog text
— day=INT
Set the calendar day
— month=INT
Set the calendar month
— year=INT
Set the calendar year
Text entry options
— text=STRING
Set the dialog text
— entry-text=STRING
Set the entry text
— hide-text
Hide the entry text
Error options
— text=STRING
Set the dialog text
— no-wrap
Do not enable text wrapping
— no-markup
Do not enable pango markup
File selection options
— filename=FILENAME
Set the file or directory to be selected by default
— multiple
Allow selection of multiple filenames in file selection dialog
— directory
Activate directory-only selection
Info options
— text=STRING
Set the dialog text
— no-wrap
Do not enable text wrapping
List options
— text=STRING
Set the dialog text
— column=STRING
Set the column header
— hide-column=NUMBER
Hide a specific column
— hide-header
Hides the column headers
Notification options
— text=STRING
Set the notification text
Progress options
— text=STRING
Set the dialog text
— percentage=INT
Set initial percentage
— no-cancel
Hides the cancel button
Question options
— text=STRING
Set the dialog text
— no-wrap
Do not enable text wrapping
— no-markup
Do not enable pango markup
Text options
— filename=FILENAME
Open file
— editable
Allow changes to text
— checkbox=TEXT
Enable a checkbox for use like a ‘I read and accept the terms.’
Warning options
— text=STRING
Set the dialog text
— no-wrap
Do not enable text wrapping
Scale options
— text=STRING
Set the dialog text
— value=VALUE
Set initial value
— min-value=VALUE
Set minimum value
— max-value=VALUE
Set maximum value
— print-partial
Print partial values
— hide-value
Hide value
Color selection options
— color=VALUE
Set the initial color
— show-palette
Show the palette
Password dialog options
— username
Display the username field
Forms dialog options
— add-entry=FIELDNAME
Add a new Entry in forms dialog
— add-password=FIELDNAME
Add a new Password Entry in forms dialog
— add-calendar=FIELDNAME
Add a new Calendar in forms dialog
— text=STRING
Set the dialog text
Miscellaneous options
-?, — help
Show summary of options.
— about
Display an about dialog.
— version
Show version of program.
Hope! this article is helpful to you to know about various zenity commands…