Zenity
Zenity is a GTK+ powered alternative for the dialog(1) and the whiptail(1).
It can display
- text or password entry
- calendar (date selector)
- file/directory selector
- color chooser
- confirmation
- “info”
- “warning”
- …
User input Zenity dumps to STDOUT so you can easily integrate any dialog into your shell scripts.
Also, Zenity can show the desktop notifications and the progress indicators.
Examples
OS Suspend confirmation:
A shopping list (from
man zenity
):A notification (from
man zenity
):
Wrappers
There are many wrappers for the different programming languages. Here is a couple of them: