Skip to main content

Zenity Commands in Linux


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.
For example, zenity --question will return either 0, 1 or 5, depending on whether the user pressed OK, Cancel or timeout has been reached. zenity --entry will output on standard output what the user typed into the text entry field.


Lets see some major & special zenity commands

Options in Zenity:

1.man zenity : By using this command one can easily find the commands inside the zenity.



2.zenity --error text="ERROR"


3.zenity --color-selection yellow

4.zenity --progress


5.zenity --question --text="Are you sure you want to exit?


6.zenity --info --title="COFFE-MACHINE" --window-icon="/index.jpg" --text="let's take a break"


7.zenity --list --radiolist --text="choose your gender" --hide-header --column "Select" --column "gender" FALSE "MALE" FALSE "FEMALE"


8.zenity --forms --text="LOGIN" --add-entry="username" --add-entry="password"


Comments

Popular posts from this blog

Run any GUI software in docker container

 

Vivo Announces Android 11-Based Funtouch OS 11 Beta Update Schedule for India

Vivo has announced the rollout schedule for the beta version of its Android 11-based Funtouch OS 11 in India that will go on till June. The Vivo V20 debuted with the stable version of Android 11 with Funtouch OS 11 in October, and the Vivo X50 Pro started receiving the update last month, but the company was yet to announce the schedule for its older models. The update schedule has devices ranging from the budget segment to the premium segment. The company took to Twitter to reveal its Android 11-based Funtouch OS 11 beta rollout plan. Vivo clarified that users will receive the update on a batch-by-batch basis. The Vivo V20 and the Vivo V20 Pro are already running on the latest OS. The Vivo X50 Pro, too, started receiving the update last month, Vivo said. The Vivo V19 and the Vivo X50₹ 34,990 will start receiving the Android 11-based Funtouch OS 11 beta version update at the end of January 2021, while Vivo V17, Vivo V17 Pro₹ 27,375, Vivo V15 Pro, and Vivo S1 will start receiving the upd...

how to make a static IP Address of an Raspberry-pi

How To Make Raspberry-pi ip-Address Static and show an virtual window of raspberry-pi on Windows desktop through VNC-Viewer STEP  1: Disconnect your Desktop from Windows operating system. STEP  2: Connect your Raspberry-pi to your pc install the Raspbian from the below link STEP  3: Download BalenaEtcher which is basically an image flasher which is going to flash the image of the OS that is Raspbian on the SD card on any USB  for further details go to the link below and download it. Also you can download Win32diskmanger to flash the OS STEP  4: Now as we download the Raspbian and also we flash it now Download the VNC viewer through the below link  STEP  5: Now open the Terminal on Rasberry-pi and write the following commands 1. ifconfig : Check out the  ip-address , sub-net mask 2. netstat -nr : This command will tell you about the  gateway address 3. sudo nano /etc/network/interfaces : This command will give the netwo...