Zenity is a program often used in scripts to display graphical boxes that very often prompt for user input. It is a rewrite of the old, but still used gdialog program, and has a 'gdialog wrapper script' so that it can be used in older scripts.

learn more… | top users | synonyms

1
vote
0answers
16 views

How do I implement spin boxes in zenity.

How do I implement spin boxes in zenity.I have to migrate a code from Xdialog to zenity.
1
vote
0answers
21 views

Change content of list in app indicator made using cappind

I made a simple indicator using cappind script which is based on zenity - Webupd8 article Capind page I want to change the text of the list according to some condition.. Like, if the contents are - ...
0
votes
1answer
74 views

How to restore proper notification handling with gnome-session, Openbox, Cairo-dock?

I run Ubuntu 14.04 with gdm and gnome-session, but I disabled dash/metacity/unity and use Openbox and Cairo Dock. Last week, all was fine - notifications appeared in a transient dock popup. After ...
0
votes
0answers
65 views

Getting window-icon to work with Zenity

I am having a weird problem with Zenity. I've never used Zenity before, so this could be a mistake. If I type the command zenity --question --text=QUESTIONGOESHERE ...
0
votes
0answers
179 views

Every time I connect to the internet zenity says “downloading wine-unity3d-installer”

Every time I connect to the internet Zenity flashes that little popup for about a second (because the download is apparently 1 mb) a couple of times. First of all, why does it keep installing the same ...
-2
votes
1answer
182 views

Store the return string to a variable from zenity

I am using Zenity tool to pop-up an entry dialog box. But how can i store the value entered into the text box to a variable ? Now, the string is being printed onto the console itself. I want it to be ...
3
votes
2answers
199 views

Why does a bash-zenity script has that title on Unity Panel and that icon on Unity Launcher?

I have this small bash script which helps use Infinality font rendering options via a more user-friendly Zenity window: http://gnomefiles.org/content/show.php/Infinality+Style+Changer?content=161984 ...
14
votes
1answer
1k views

How can I create a wget GUI with multiple progress bars?

I'm writing my own script to download multiple items (simultaneously, one item per command) using wget and I need a progress bar. I currently utilize zenity --progress for my progress bars, but the ...
1
vote
1answer
286 views

Zenity from command line Linux installation

I have a command line installation of Linux, i.e. when I was installing it, I chose to install a command line version. I want to make use of zenity from the command line to popup dialog boxes etc. ...
3
votes
1answer
245 views

Confirm shutdown with Zenity?

I got this command which enables me to shutdown Ubuntu 13.10 directly from the keyboard (without needing to open a terminal and running something like sudo shutdown -h now): dbus-send --system ...
0
votes
1answer
576 views

math operations from array elements in bash script [closed]

Using Ubuntu 13.10, bash and zenity, I am building a simple checkbook utility. In the code below, the section with all the commented math commands are the ones that I have tried. There is also a ...
0
votes
1answer
149 views

Turn off display after n seconds in shell script

#!/bin/sh ( time=$( zenity --scale --min-value=0 --max-value=20 --text="Pls Select Time in(s)") ) && sleep $time && xset dpms force off I wanted to turn off display after n seconds, ...
1
vote
1answer
507 views

Is Zenity progress bar affecting variables

Hi guys I am currently trying to implement zenity progress bar to my while loop, however I noticed that my variable which are meant to be incremented did not increment. Here is a sample test script I ...
1
vote
2answers
382 views

Running a zenity script with if statements

I am having a problem writing a script for 'zenity.' My intention is to have a comment selected randomly from a list and then displayed on the screen for the user to see. To be honest, I would like ...
0
votes
1answer
397 views

Alternative to yad/Zenity for Unity

In Ubuntu 13.04 yad and Zenity notification icons aren't showed in Unity. I have written a script to use notification icon to alert me about lftp download progress. Is there any alternative that it ...
0
votes
2answers
941 views

Zenity progress bar and output

I wrote this little script: response=$(process ...) | zenity --progress --pulsate echo $response I want read the response of the process, whatever it is, and show a pulsating progress bar in the ...
1
vote
1answer
110 views

How to use change directory in zenity?

how to use cd command for change directory in zenity, my simple script like this #!/bin/bash a=`zenity --entry --entry-text="input directory name"` cd $a but, when cd [The cd (ChangeDirectory) ...
2
votes
0answers
98 views

insert $duration variable inside another line of code in a sh file

I found out about byzanz-record which can record your desktop and get the result as a gif, flash or other, I want to make a GUI for personal use but I can't seem to get it working up until now I only ...
0
votes
1answer
519 views

zenity alternative for bash scripts in package sources?

Zenity is a bit too limited for my use cases. What are the alternatives? Must be inside package sources. Must be useable from within bash scripts.
2
votes
1answer
471 views

Show a notification at login using pam_exec

This simple script will show a Zenity notification when the user logs in: case "$PAM_TYPE" in 'open_session' ) if [ "$PAM_SERVICE" = "lightdm" ] ; then DISPLAY=:0 sudo -u ...
4
votes
2answers
207 views

Looking for a customizable “Did you know…” dialog application

I want to deploy a "Did you know..." or "Tip of the day" application at the office. It should: Show a dialog at login time with a random tip. Obviously, provide some way to store my own tips. Be ...
0
votes
2answers
226 views

Thunderbird Zenity dialog

Whenever I get a new email in Thunderbird, zinity pops up with a modal dialog box: This is very anoying and when I'm away for some time and get back, I have to click OK/Cancel a dozen time to get ...
3
votes
1answer
632 views

zenity window on top

I would like the window produced by zenity to be configured so it is always on top. There does not appear to be an option to enable this. Can someone suggest a source change to the zenity code so that ...
4
votes
1answer
3k views

How do I create a popup banner before login with Lightdm?

When Ubuntu was using gnome I was able to create a popup banner like the banner below before the login screen using zenity in the /etc/gdm/Init/Default. The line of code would be like this: if [ -f ...
2
votes
1answer
305 views

Printing Checks from CLI or GUI

Looking for a program or a way to print onto my bank checks in Ubuntu. I don't want to use GNUCash or KMyMoney as those are bank register program's and it's too much work to open one of those each and ...
1
vote
2answers
106 views

How do I use/bundle a custom version of Zenity in my script?

I'm writing a script using zenity. But zenity 3.4.0 has a bug (has been fixed in latest Ubuntu versions), it returns exit code 139 instead of 0 or 1. But I need to use it in scenarios where the bug is ...
1
vote
2answers
1k views

How to use inotifywait in a non-blocking way and mail the results?

I've tried several times to test my script, but with no success. This is the script: zenity --question --text "my text" if [ $? -eq 1 ]; then zenity --warning --text "my text" else ping -n ...
1
vote
1answer
2k views

Running UCK causes zenity crashed

I was very satisfied with Ubuntu Customization kit on Ubuntu previous versions but with 12.04, it leads to crash zenity and disappear the GUI and nothing occur.I tried the old version of this package ...
2
votes
1answer
1k views

What is “zenity” and did it crash?

I am on Ubuntu 12.04. I was running the Ubuntu customization kit but it disappeared with the following message: "The application zenity closed unexpectedly". When I further ran it, it just closed ...
0
votes
1answer
783 views

In 12.04, does zenity crash on you too? [closed]

When I run zenity --list --title=111 --column=222 --column=333 ab cd ef gh and select any line with a mouse (or keyboard) and then click on "Ok", I got: $ zenity --list --title=111 --column=222 ...
-1
votes
2answers
511 views

how-to properly create a launcher (.desktop-file) - unresolved & zenity hangs

Title: zenity hangs & .desktop files dont have the desired effect Environment: Ubuntu Oneiric x64, gnome-shell, zfsonlinux Motivation: Automagically save state of all VM's (and config) while ...
2
votes
1answer
1k views

How do I set a click action on zenity --notification?

Running echo "message:hi" | zenity --notification --listen I can click the bubble and it disappears. The zenity program keeps running until I Ctrl-C. Is there a way to "catch" the click and make ...
5
votes
2answers
2k views

Zenity and text formating

I just discovered that zenity support html tags zenity --error --text "hello <b>world</b>" but how to make it work with "entry" type ? zenity --entry --text "hello ...
3
votes
1answer
85 views

Is there an application to create windows with messages?

I want to do something to create a window, preferably marked as on-top, with a configurable message. Is there an Ubuntu package for that? The idea to put the relevant command inside a script: ...
3
votes
2answers
3k views

How to call zenity from cron script?

Example script error.sh: #! /bin/bash zenity --error --text='Something very bad has happened!' My incron-config: ~/Documents IN_MOVED_TO ~/scripts/error.sh If I run error.sh in terminal GUI ...
1
vote
1answer
3k views

output terminal redirect to zenity

Let's explain you my doubt. We all know that >& is shell syntax for "fold a file descriptor into another". So 2>&1 means that i want to redirect stderr to the stdin, this is simple and ...
0
votes
1answer
1k views

bash script and zenity progress

I have this cmds: (youtube-dl http://www.youtube.com/watch?v=HhoewflkQu0) | zenity --progress --width=400 --height=100 --title="Scaricamento" --text "Scaricamento in corso..." --auto-close --pulsate ...
6
votes
2answers
2k views

Where's documented combo box usage with zenity?

I found by chance it was possible to display a combo box with zenity (version tested: 2.32.1). See the following code: #!/bin/bash array=(a b c d e) value=$(zenity --entry --title "Window title" ...
4
votes
1answer
2k views

How to use a zenity progress bar with cclive

I tried to use a zenity progress bar with cclive. I'm writting a script to download web videos files and I wanna see the progression of the download. But when I try something like $cclive ...
2
votes
1answer
932 views

How to open a file in gedit with zenity --file-selection as root

I try to open a file in gedit with the file-selection option of zenity. It's very easy to do it for file that i can access in normal mode, but I wanna open too some configuration files (as for exemple ...
5
votes
2answers
929 views

Add unity quicklist launcher with a zenity command

I try to add a quicklist launcher for gedit that allowed me to open a new doc in gedit directly from unity dash so I tried to add this command to my OpenDoc Shortcut Group [OpenDoc Shortcut Group] ...
0
votes
2answers
278 views

whats wrong with this zenity code?

whats wrong with this code? #!/bin/bash ARCH=$(uname -m) if ["$ARCH" = "i686"]; then zenity --info --title="Architechture Checker" --text="Your Architechture is 32-Bit" if ["$ARCH" = "x86_64"];then ...
1
vote
2answers
601 views

Add Progress Bar

I would like to include a zenity progress bar for this part of my script: zenity --question --title "GUI" --text "Sync Music to iPad?" if [[ $? == 0 ]] ; then scp -r "$FOLDER" ...
5
votes
1answer
664 views

Reliable alert dialogs from the shell

I'd like to have a message pop up in response to various system events, mostly in order to be able to set reminders for myself from a shell session. There are a few ways to do this; zenity seems to ...
2
votes
1answer
466 views

zenity script for zsync

Can someone make a simple zenity script for zsync which just takes the location of the file to be synced and the zsync file and show progress ?
5
votes
2answers
4k views

How to load a `zenity` List Dialog with space-embedded data from `ls`?

I'm having problems loading a zenity List Dialog when the data contains spaces. It is straight-forward when there are no spaces in the listed data, but I don't know of a simple/standard method for ...