Rohit Jain
2 min readSep 20, 2021

In this article, we will discuss some interesting commands in zenity.

So let's start :)

First, we have to know about what is zenity?

Zenity is a cross-platform command-line tool and that will display GTK dialogs and return the User’s input. That tool is preinstalled in Linux systems. Zenity allows easy creation of GUIs, though it has fewer features than more complex GUI-creation tools.

So let's create some Dialog Box:-

CheckList Dialog Box:-

There is a command to create a checklist using Zenity:

>zenity --list --title=”Vegetable Store” --checklist --column=”Select Veg” --column=”Vegetable” 1 “Patato”, 2 “Tomato” ,3 “Onion” ,4 “Carrot”

Asking question dialog box:-

There is a command for the Question dialog box:

zenity --question --text=”Hey buddy how are you”

Color dialog box:-

There is a command for the color dialog box:

zenity --color-selection

Create a Forms dialog box:-

There is a command for creating login form dialog box:

zenity --forms --add-entry=Username --add-password=Password --text=Login

You can build much more dialog boxes using zenity. So Go to your system and create interesting dialog boxes.

I am very thankful to you to read my article :)