ZENITY

chinmay waykole
2 min readSep 26, 2021

--

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.

There are many different types of dialog boxes that the Zenity command can create. The following is a table that uses options (starting with — symbol immediately followed by a word to indicate the type dialog box to generate.

Dialog Options:

To Display Calendar : zenity — calendar

To display a Text dialog: zenity — entry

To display color selection dialog : zenity — color-selection

To display info dialog : zenity — info

To create a list option : zenity — list

To display warning: zenity — warning — text “<text>”

Display calendar inside a dialog box: zenity —info — text=”$(cal)” — width=200

THANK YOU!!

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

No responses yet

Write a response