DEV Community

Cover image for zenity command in Linux!!
Shivam Tiwari
Shivam Tiwari

Posted on

zenity command in Linux!!

It is my first post on dev. I am very happy that I am sharing my some experiences about zenity command. I am going to give the total details about zenity command in Linux, how is it work and how we will write on the command prompt.

zenity

It is a Linux command which takes input and print it in a dialog box (It is a graphical user interface where output by zenity command prints).
I am giving some commands below which is useful with zenity..

1)zenity --info --text="hello"

this command is used to print the text in a GUI window.

2)zenity --username --password

To get a username and password via zenity or two set username and password via zenity we will use this command.

3)zenity --calendar --text="calendar_name"

Here, with use of this command we can print the calendar using zenity in GUI window.

4)zenity --calendar --title="title"

With use of this command we can change the title or we can make the title of calendar which will print through GUI

5)zenity --calendar --month=4

Here, we can pass any integer value it will print the calender in GUI from the month which you will enter as integer.

6)zenity --info --height=20

It will set the height of GUI window to 20px

7)zenity --info --width=20

It will set the width of GUI window to 20px.

8)zenity --progress

It will showing you a progress bar on GUI window.

9)zenity --question

It creates a question dialog.

10)zenity --color-selection

By this command we can select colours.

Top comments (0)