Use of Zenity Command in Linux

Use of Zenity Command in Linux

In this blog, we will see some awesome use of the Zenity command in RedHat Linux.

Zenity

Zenity is free software and a cross-platform program that allows the execution of GTK dialog boxes in command-line and shell scripts.

Display graphical dialog boxes from shell scripts

Lets see uses of Zenity Command

To see the manual of zenity command run the below command.

man zenity

image.png

See Help

To see the help of any zenity commands.

zenity --help

image.png

Display Information

zenity --info

zenity Information

Set Value

Display a scale dialog box

zenity --scale --title="Volume" --text="Set Volume Level" --value=50

image.png

Show Progress

zenity --progress --text="Downloading" --percentage=80

image.png

Display Warning

zenity  --warning

image.png

Display Calendar

zenity  --calendar

image.png

Text Entry Box

zenity --entry --text="Enter Your Name" --entry-text="Shashi Kant"

image.png

Display Color selection Tool

zenity --title="Set Color" --color-selection

image.png

Display Password set dialog box

zenity --title="Set Password" --password

image.png

File Selection

Display a file selection dialog box.

zenity --file-selection

image.png


That’s All, Keep Learning.

! THANK YOU For Reading !