If you want to print something as a pop-up on your screen or you can call it as GUI (graphical user interface) we have a lot of dialog boxes .
GTK is a graphical tool in Linux like qGUI .
Commands
zenity --version
man zenity
q
to quit
zenity --calender
zenity --entry
: to take input from the user
To see manual we have 2 options
man zenity
-
zenity --help
In zenity whatever you type should be stored somewhere.
-
zenity --entry
now ,lets store the data
eg . x=zenity --entry
this is a wrong way to store the data
Correct way :
x=$(zenity --entry)
(💡: No space before and after equal in shell scripting)
echo $x
zenity --info
zenity --info --text="Hey Aakriti this side"
For more commands you can explore with the help of zenity manual .
Top comments (0)