Task-1: Zenity command

what is Zenity ?

Zenity is a command-line dialog creator. This allows you to present information, and ask for information from the user, from all manner of shell scripts.

Zenity supports: basic forms,calendar dialog,color selection dialog,file selection dialog, list dialog,Message and notification dialog,progress bars and scales,text entry and text information dialogs.

No alt text provided for this image

There are many more possible usages of Zenity command, to see options in detain use this command "man zenity" (this will open the manual of zenity command)



Example: let open a warning dialog using zenity.

According to the manual '--warning' is the option to open up a warning dialog

No alt text provided for this image

here we can use multiple options in a single command to make it more attractive .

Lets add a title to box for that use '--title' option

now our command will be : " zenity --warning --title='XYZ' "

No alt text provided for this image

We can add little more to it by using '--text ' option

command : zenity --warning --title='XYZ' --text='<span font="32" foreground="red"> High Temperature</span>'

No alt text provided for this image

We can use zenity command with scripts that let you use it in real-time dialog boxes.

Thank you






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

Abhay Ganvir的更多文章

  • Image Concatenation using Python

    Image Concatenation using Python

    What is Concatenation? In the contest of programming, concatenation simply means joining or merging two strings…

    4 条评论
  • Task 1.2: Text-to-speech espeak-ng command

    Task 1.2: Text-to-speech espeak-ng command

    eSpeak NG is a compact open-source software speech synthesizer for English and other languages, for Linux. eSpeak NG…

社区洞察

其他会员也浏览了