Zenity
Zenity is an open source and a cross-platform application which displays GTK+ Dialog Boxes in command-line and using shell scripts. It allows to ask and present information to/from shell in Graphical Boxes. The application lets you create Graphical dialog boxes in command-line and makes the interaction between user and shell very easy.
Zenity Features
- FOSS Software
- Cross Platform Application
- Allow GTK+ Dialog Box Execution
- Command Line Tool
- Support in Shell Scripting
Usefulness
- Easy GUI Creation
- Less features than other complex Tools
- Enables shell scripts to interact with a GUI users
- Simple dialog creation is possible for graphical user interaction
Since Zenity is available for all known major platforms, and based on GTK+ library, Zenity program can be ported to/from another platform.
Basic Zenity options
- Calendar Dailog : Shows calendar in dailogbox.
[sam@localhost ~]$ zenity --calendar
2.A Progress Bar.
[sam@localhost ~]$ zenity --progress
3.An Warning in Dailog Box.
[sam@localhost ~]$ zenity --warning
4.File selection in Dailog Box.
[sam@localhost ~]$ zenity --file-selection
5.An Entry in Dailog Box.
[sam@localhost ~]$ zenity --entry
6.password in Dailog Box.
[sam@localhost ~]$ zenity --password
So we get all type of dailogbox using zenity. we can also make interactive dailog box using zenity and use in realtime application.
Here are one example of zenity dailog box.
!!!Thanks for reading this article!!!