ZENITY(1)
๐ NAME ๐
okay bestie, welcome to the zenity(1) manual page โ User Commands section, zenity 4.2.2 edition. zenity โ manual page for zenity 4.2.2. periodt.
๐ธ DESCRIPTION ๐ธ
zenity is a program that displays GTK+ dialogs and returns the userโs input โ either in the return code or on standard output. Itโs giving โlet your shell scripts talk to actual humansโ energy, and honestly? iconic. You can present information to the user 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. And zenity --entry will output on standard output what the user typed into the text entry field. slay.
Comprehensive documentation is also available in the GNOME Help Browser. ๐ซถ
Usage:
zenity [OPTION???]
Help Options:
-h,--helpโ Show help options--help-allโ Show all help options--help-generalโ Show general options--help-calendarโ Show calendar options--help-entryโ Show text entry options--help-errorโ Show error options--help-infoโ Show info options--help-file-selectionโ Show file selection options--help-listโ Show list options--help-notificationโ Show notification options--help-progressโ Show progress options--help-questionโ Show question options--help-warningโ Show warning options--help-scaleโ Show scale options--help-text-infoโ Show text information options--help-color-selectionโ Show color selection options--help-passwordโ Show password dialog options--help-formsโ Show forms dialog options--help-miscโ Show miscellaneous options
General options
--title=TITLEโ Set the dialog title--width=WIDTHโ Set the width--height=HEIGHTโ Set the height--timeout=TIMEOUTโ Set dialog timeout in seconds--ok-label=TEXTโ Set the label of the OK button--cancel-label=TEXTโ Set the label of the Cancel button--extra-button=TEXTโ Add an extra button--modalโ Set the modal hint--attach=WINDOWโ DEPRECATED; does nothing ๐
Calendar options
--text=TEXTโ Set the dialog text--day=DAYโ Set the calendar day--month=MONTHโ Set the calendar month--year=YEARโ Set the calendar year--date-format=PATTERNโ Set the format for the returned date
Text entry options
--text=TEXTโ Set the dialog text--entry-text=TEXTโ Set the entry text--hide-textโ Hide the entry text
Error options
--text=TEXTโ Set the dialog text--icon=ICON-NAMEโ Set the icon name--no-wrapโ Do not enable text wrapping--no-markupโ Do not enable Pango markup--ellipsizeโ Enable ellipsizing in the dialog text. This fixes the high window size with long texts
Info options
--text=TEXTโ Set the dialog text--icon=ICON-NAMEโ Set the icon name--no-wrapโ Do not enable text wrapping--no-markupโ Do not enable Pango markup--ellipsizeโ Enable ellipsizing in the dialog text. This fixes the high window size with long texts
File selection options
--filename=FILENAMEโ Set the filename--multipleโ Allow multiple files to be selected--directoryโ Activate directory-only selection--saveโ Activate save mode--separator=SEPARATORโ Set output separator character--file-filter=NAME | PATTERN1 PATTERN2 ...โ Set a filename filter--confirm-overwriteโ DEPRECATED; does nothing ๐
List options
--text=TEXTโ Set the dialog text--column=COLUMNโ Set the column header--checklistโ Use check boxes for the first column--radiolistโ Use radio buttons for the first column--imagelistโ Use an image for the first column--separator=SEPARATORโ Set output separator character--multipleโ Allow multiple rows to be selected--editableโ Allow changes to text--print-column=NUMBERโ Print a specific column (Default is1.'ALL'can be used to print all columns)--hide-column=NUMBERโ Hide a specific column--hide-headerโ Hide the column headers--mid-searchโ DEPRECATED; does nothing ๐ญ
Notification options
--text=TEXTโ Set the notification text--icon=ICON-NAMEโ Set the icon name--listenโ Listen for commands on stdin--hint=TEXTโ DEPRECATED; does nothing ๐
Progress options
--text=TEXTโ Set the dialog text--percentage=PERCENTAGEโ Set initial percentage--pulsateโ Pulsate progress bar--auto-closeโ Dismiss the dialog when 100% has been reached--auto-killโ Kill parent process if Cancel button is pressed--no-cancelโ Hide Cancel button--time-remainingโ Estimate when progress will reach 100%
Question options
--text=TEXTโ Set the dialog text--icon=ICON-NAMEโ Set the icon name--no-wrapโ Do not enable text wrapping--no-markupโ Do not enable Pango markup--default-cancelโ Give Cancel button focus by default--ellipsizeโ Enable ellipsizing in the dialog text. This fixes the high window size with long texts--switchโ Suppress OK and Cancel buttons
Warning options
--text=TEXTโ Set the dialog text--icon=ICON-NAMEโ Set the icon name--no-wrapโ Do not enable text wrapping--no-markupโ Do not enable Pango markup--ellipsizeโ Enable ellipsizing in the dialog text. This fixes the high window size with long texts
Scale options
--text=TEXTโ Set the dialog text--value=VALUEโ Set initial value--min-value=VALUEโ Set minimum value--max-value=VALUEโ Set maximum value--step=VALUEโ Set step size--print-partialโ Print partial values--hide-valueโ Hide value
Text information options
--filename=FILENAMEโ Open file--editableโ Allow changes to text--font=TEXTโ Set the text font--checkbox=TEXTโ Enable an I read and agree checkbox--auto-scrollโ Auto scroll the text to the end. Only when text is captured from stdin
Color selection options
--color=VALUEโ Set the color--show-paletteโ Show the palette
Password dialog options
--usernameโ Display the username option
Forms dialog options
--add-entry=Field nameโ Add a new Entry in forms dialog--add-password=Field nameโ Add a new Password Entry in forms dialog--add-multiline-entry=Field nameโ Add a new multi-line entry in forms dialog (Since: 4.2)--add-calendar=Calendar field nameโ Add a new Calendar in forms dialog--add-list=List field and header nameโ Add a new List in forms dialog--list-values=List of values separated by |โ List of values for List--column-values=List of values separated by |โ List of values for columns--add-combo=Combo box field nameโ Add a new combo box in forms dialog--combo-values=List of values separated by |โ List of values for combo box--show-headerโ Show the columns header--text=TEXTโ Set the dialog text--separator=SEPARATORโ Set output separator character--forms-date-format=PATTERNโ Set the format for the returned date
Miscellaneous options
--aboutโ About zenity--versionโ Print version
Application Options:
--calendarโ Display calendar dialog--entryโ Display text entry dialog--errorโ Display error dialog--infoโ Display info dialog--file-selectionโ Display file selection dialog--listโ Display list dialog--notificationโ Display notification--progressโ Display progress indication dialog--questionโ Display question dialog--warningโ Display warning dialog--scaleโ Display scale dialog--text-infoโ Display text information dialog--color-selectionโ Display color selection dialog--passwordโ Display password dialog--formsโ Display forms dialog
โจ EXAMPLES โจ
Display a file selector with the title Select a file to remove. The file selected is returned on standard output. bestie, itโs literally that easy:
zenity --title="Select a file to remove" --file-selection
Display a text entry dialog with the title Select Host and the text Select the host you would like to flood-ping. The entered text is returned on standard output. no cap:
zenity --title "Select Host" --entry --text "Select the host you would like to flood-ping"
Display a dialog, asking Microsoft Windows has been found! Would you like to remove it?. The return code will be 0 (true in shell) if OK is selected, and 1 (false) if Cancel is selected. iconic behavior:
zenity --question --title "Alert" --text "Microsoft Windows has been found! Would you like to remove it?"
Show the search results in a list dialog with the title Search Results and the text Finding all header files.... ๐ธ:
find . -name '*.h' | zenity --list --title "Search Results" --text "Finding all header files.." --column "Files"
Show a passive notification ๐ฆ:
zenity --notification --icon=software-update-available --text "System update necessary!"
Display a weekly shopping list in a check list dialog with Apples and Oranges pre selected ๐:
zenity --list --checklist --column "Buy" --column "Item" TRUE Apples TRUE Oranges FALSE Pears FALSE Toothpaste
Display a progress dialog while searching for all the postscript files in your home directory ๐ฅ:
find $HOME -name '*.ps' | zenity --progress --pulsate
๐ AUTHOR ๐
okay so the lore ๐ซถ โ Zenity was originally written by Glynn Foster <glynn.foster@sun.com>. iconic behavior, honestly ๐. and since then? it's been maintained by a number of contributors โ a whole squad, no cap ๐ง.
this manual page was originally written by Ross Burton <ross@burtonini.com> ๐ธ. and bestie, here's the fun part: it currently contains portions which are automatically generated, plus other portions written by its original author โจ. so it's like, a collab. iykyk ๐
.
๐ SEE ALSO ๐
dialog(1)โ yeah go look at that one too, bestie ๐ฆ
so that's the whole thing, fr fr ๐ go make some cute little dialogs and slay โจ
and before you close the tab ๐ โ this beauty is zenity 4.2.2, dated March 2026, from the source page ZENITY(1) ๐ okay bye ily have fun ๐
๐ธ
๐ฆ where this page comes from
- arch rolling: zenity 4.2.2-1 ยท LGPL-2.1-or-later
- nixos 26.05: zenity 4.2.2
- nixpkgs unstable: zenity 4.2.2
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms