Zenity Command in Linux :
ARTH — Task 1 :
Task Description 1.1 📄
📌 Create a blog about explaining various options for zenity:
What is 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.
There are other alternatives, but nothing compares to the simplicity of Zenity, specially when you don’t need complex programming. Zenity, a tool you must have your hands on.
For example, zenity — question will return either 0, 1 or 5, depending on whether the user pressed OK, Cancel or timeout has been reached. zenity — entry will output on standard output what the user typed into the text entry field.
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.
Some Dialog options in Zenity with demo :
1. — calendar : This command displays calendar dialog.
2. — entry: This command displays text entry dialog.
3. — error:- This command displays error dialog.
4. — info:- This command displays info dialog.
5. — file-selection:- This command displays file selection dialog.
file selection
6. — progress:- This command displays progress indication dialog.
7. — question:- This command displays question dialog.
8. — warning:- This command displays warning dialog.
9. — color-selection:-This command displays color selection dialog.
10. — pasword:- this command displays password dialog.