Creating GUI using CLI

Nikita Sahoo
2 min readSep 20, 2021

What is Zenity??

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.

Zenity is by default already install in all repository of most of the Standard Linux distribution of today.

To check whether your system has Zenity already install you can use following command.

#zenity — version

ZENITY BASIC COMMANDS

An Entry Dialog Box

# zenity — entry

Calendar Dialog Box

#zenity — calendar

Progress Bar Dialog Box

#zenity — progress

Scale Dialog Box

zenity — scale

Colour selection Dialog Box

zenity — color-selection

Password Dialog Box

zenity — password

About Dialog Box

zenity — about

Alert Dialog box

zenity — question — title “Alert” — text “Can we proceed?”

There are many other zenity commands.For more commands read ZENITY MANUAL.

THANK YOU!!

--

--