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
See Help
To see the help
of any zenity commands.
zenity --help
Display Information
zenity --info
Set Value
Display a scale dialog box
zenity --scale --title="Volume" --text="Set Volume Level" --value=50
Show Progress
zenity --progress --text="Downloading" --percentage=80
Display Warning
zenity --warning
Display Calendar
zenity --calendar
Text Entry Box
zenity --entry --text="Enter Your Name" --entry-text="Shashi Kant"
Display Color selection Tool
zenity --title="Set Color" --color-selection
Display Password set dialog box
zenity --title="Set Password" --password
File Selection
Display a file selection dialog box.
zenity --file-selection
That’s All, Keep Learning.
! THANK YOU For Reading !