Zenity And How to use it ?
Source : My computer

Zenity And How to use it ?

Zenity is simple yet useful tool in Linux by which we can make pop on-screen using various commands .

You can read the zenity manual by using

man zenity        

the command in the terminal your screen will look something like the below picture !

No alt text provided for this image

We have to use the below syntax to use the zenity commands !

zenity --[Command]        

How to pop out something on-screen using Zenity ???

We can do this using

zenity --info --text=<text>        
No alt text provided for this image

What if we want to change the title of the pop-out ???

Now ,we will use the title command

zenity --info --title=<title_text>        
No alt text provided for this image

How to take input ?

By using the

zenity --entry         
No alt text provided for this image

Let's add title and info text to the pop out !

we are gonna use the --entry,--title, and --text command to do this

zenity --title="Title" \
--entry --text="Text is changed !"         
No alt text provided for this image

With the help of the zenity we can create notifications we can use various commands to create beautiful popouts,notification we can change the colour of text and etc .

More useful commands from the

zenity --help         
No alt text provided for this image

To know more about zenity just explore the zenity : )

zenity --info --text="Hope you like my work : )"

要查看或添加评论,请登录

Sudhanshu Tiwari的更多文章

  • Data Visualization Using Python

    Data Visualization Using Python

    In this article, I will be discussing my experience participating in the Crio.Do #ibelieveindoing 2022 Challenge and my…

    6 条评论
  • Exploring Ram in linux

    Exploring Ram in linux

    What is RAM ? From a random access memory's name it appears that it is temporary data that is needed to perform certain…

  • How to use espeak-ng in Linux ?

    How to use espeak-ng in Linux ?

    Before we know how how to use espeak-ng commands in Linux first let's know about What is TTS? TTS stands for text to…

社区洞察

其他会员也浏览了