Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [zenity]

Zenity is a tool that will display Gtk+ dialog boxes from the command line and through shell scripts. It is a rewrite of gdialog, the GNOME port of dialog.

0
votes
0answers
9 views

How can I show a progress bar using Yad or Zenity when unzipping files?

I would like to display a nice GUI progress bar using either Yad or Zenity (doesn't matter to me) when I am running unzip on my files. I am running Linux Mint 19.1. Thank you, -Marcus
1
vote
0answers
20 views

What are the differences/(dis)advantages of zenity vs notify-send?

There is both zenity and notify-send. (on Fedora/GNOME at least, both seems to be pre-installed.) So considering I want to show notifications, what are the differences between these too ones? Is ...
0
votes
0answers
30 views

Faster alternative to yad for a specific use case

Anyone knows a program that's faster/smaller than yad, to display gui windows with text. More specifically what i need: ability to control windows height/width control over where window is displayed ...
0
votes
0answers
107 views

How to increase the font size in zenity --entry and --text-info

zenity --entry --text="<big><big>Enter Value :</big></big> " zenity --text-info --checkbox="<big><big>Accept terms and condition</big></big>" After ...
4
votes
2answers
405 views

How can I change Zenity dialog icon?

I want to change the default icon of any dialog in zenity , I write this line of code for ERROR Dialog zenity --error --text='Icon As It Is' --window-icon=/home/ --icon-name=64.png --no-wrap From ...
0
votes
1answer
50 views

Lack of a text input field in zenity file selector

I have Debian 9 with xfce and installed zenity to use it to select directory paths. I use it in this way zenity --file-selection --directory The GUI selector looks as below. It has not the text ...
0
votes
1answer
178 views

Create dialog based on console output

I would like to display a dialog box using zenity or dialog or something similar based on a specific string displayed in console window? Background: I have created a wrapper shell script which calls ...
0
votes
2answers
287 views

running clock in zenity menu

I have created a menu by ... zenity --title="ABC" --text="Date-'date +%d%m%Y-%T'" --list --radiolist --column="select" --column="option" FALSE "1" FALSE "2" FALSE "3" Menu showing date with time when ...
0
votes
1answer
301 views

Zenity form for easy network configuration

Im doing a zenity form for easy network configuration. The end user just fills in the information and the script does the rest. Is there a better way to do this? Any input from you guys is welcome. ...
0
votes
2answers
166 views

Cannot exit bash script correctly

I have a made a script on bash. #!/bin/bash zen(){ mark=$(zenity --scale \ --text 'FREQUENCY' \ --value=$la \ --min-value=0\ --max-value=5000 \ --step=1) } la=500 echo "Script ...
1
vote
1answer
459 views

Zenity Shell Menu for 50+ servers, How to stay in server menu?

i am trying to make a zenity shell menu to manage 50+ servers and want to add multiple customized functions. e.g:- when server goes down i want to ssh in it, then check load,free -m, last 10 mins ...
1
vote
1answer
131 views

Is there any program to get the GPG password from the GUI

I am working about a GUI PGP application with Zenity. GPG asks passphrase on terminal screen. But I want to enter passphrase from a GUI dialog box not in terminal (like zenity --password) I tried ...
0
votes
1answer
152 views

How to run a command once the first time the OS is used?

I am customizing OS and want to display a dialogue describing the ad hoc OS the first time the user is entering the OS. The command is saved in a script. What is the best strategy to execute a script ...
3
votes
1answer
549 views

How to get the line number of a Zenity selected Item

Can someone tell me how to calculate the line number of a selected item. I would like to have the specific line number to refer to a subroutine that will process the same line of a different file. #!...
3
votes
1answer
615 views

If command reach timeout execute other command

I'm trying to set up a script for my school's computer that switches them off automatically at the end of the day (since most teachers forgot them on). I thought to send a zenify warning box to ...
1
vote
1answer
141 views

Is there a program that will launch a configurable context menu

I'm looking for something like Zenity or Yad, except I want something that behaves like a menu, namely: it opens right next to the cursor; it takes one click to select things; it's possible to have ...
1
vote
1answer
1k views

dialog based decisions in bash scripts?

i am trying to write a little bash script that dose different things based on some gui questions. this is how far i got right now: [Timomey@timomeyswetab ~]$ TEST=`zenity --question`; echo test=$...
0
votes
1answer
982 views

yad, how to create a simple question dialog?

I know yad can do much more than zenity, but it also misses quickies like --question. What is the simplest way to mimic that zenity option on yad? Obs.: mimic quickies for other possibly missing ...
0
votes
1answer
3k views

How does a Zenity progress dialog's cancel button function?

While trying to make the Cancel button on a Zenity --progress window work for my scripts I've realized I don't understand how the Cancel button works at all in the example given on the Zenity Manual ...
1
vote
1answer
467 views

writing output of xbacklight -get to a variable in a bash script

I have a little script that lets me set the display brightness #!/bin/sh VALUE=$(zenity --scale --text="Select Display brightness" --value=50 --title "Helligkeit anpassen"); xbacklight -set $VALUE; ...
1
vote
2answers
169 views

Listing negative numbers in zenity --list

$ zenity --list --column 'Numbers' '-3' This option is not available. Please see --help for all possible usages. $ zenity --list --column 'Numbers' -- '-3' So obviously zenity is interpreting the '-'...
1
vote
2answers
626 views

awk output has extra carriage returns and is buffered

My ultimate goal is to get a zenity progress dialog to work while encoding with fdkaac. I first started with some code that is working when I encode "aa.wav" to "aa.mp3" with lame. This results in a ...
1
vote
1answer
972 views

Creating a Wireless Network Management GUI workaround

I just installed Alpine linux, and it all went as smoothly as i'd hoped, except for the wireless networking (and XFCE's Power button and reboot buttons being greyed out, but that's irrelevant here). ...
0
votes
1answer
70 views

Setting arguments from a text file does not work

Here is my code. #!/bin/bash set -- $(cat /home/jeevan/tempzen1.txt) zenity "$@" file tempzen1.txt contains : --list --title FILE-SELECTOR --column serialno. --column file --width 1000 --...
1
vote
2answers
443 views

Something wrong with spaces in zenity trying in a script [duplicate]

While this is directly executed in terminal it works fine zenity --info --text "pure info" --title "get info" But this script doen't work what's wrong? !/bin/bash ZEN="--info --text \"pure info\" --...
2
votes
1answer
4k views

zenity --notification: “Do default action” button

If I use the example usage command for notifications from the Zenity documentation site: zenity --notification\ --window-icon="info" \ --text="There are system updates necessary!" I get a ...
0
votes
2answers
3k views

YAD and Zenity - Input Start/Stop Times to Trim Video

I have a bash script and a php script that function in concert to trim audio/video files using start/stop times. PHP script: <?php // Create datetime objcects $dt1 = new DateTime($argv[1]); $dt2 ...
5
votes
1answer
652 views

How do I safely get multiple filenames from Zenity?

Zenity can be used to create a file selection dialog and select multiple paths. The separator for paths is specified using the --separator option. Therefore we can't use NUL, the only safe character ...
0
votes
2answers
1k views

csv file with multiple columns to zenity

How could I output the contents of a .csv file to a Zenity list. The file has multiple rows and columns and the rows are no fixed numbers. I would also like it so that when the user double clicks, on ...
1
vote
1answer
672 views

call a script if a zenity window is minimized, resized or moved

I would like to add an event-catcher, if my the zenity window gets minimized, resized or moved. I already call a script if the window is closed or the button is pressed in my typebreak script But I ...
8
votes
2answers
5k views

Keep a Zenity dialog box always-on-top in foreground

Is there a way to detect that a Zenity dialog has lost focus? I would like to keep the dialog box in the foreground unless the user presses ESC. I am attempting to add it to this script: #!/bin/...
3
votes
1answer
332 views

Securing a script a little more

I currently have the following script which works fine: #!/bin/sh user="$(zenity --entry --title="Username" --text="Username")" pass="$(zenity --password --title="Password" --text="Password")" ...
0
votes
1answer
748 views

Reusing user input in a script

I have the following script which works: #!/bin/bash xfreerdp /cert-ignore /f /v:farm.company.com /d:company.com /g:rds.company.com /u:$(zenity --entry --title="Username" --text="Username") /gd:...
4
votes
2answers
1k views

GTK: Specify application foreground and background color on command line

In the old days, all X11 applications would take standard command-line arguments to specify things like foreground/background color. Is there a way to do that today for GTK applications? In particular ...
2
votes
1answer
2k views

zenity doesn't display all list with variables

I am making a search and install PPA script for Ubuntu. This script with zenity works 80%, the problem is when this script searches; displays only the first line. I need all lines #!/bin/sh # ...
3
votes
1answer
909 views

Change script to use whiptail instead of zenity

I'm having difficulty converting some zenity based script to use whiptail instead. The working script looks something like this: #!/bin/bash xfreerdp /v:farm.company.com \ /d:company.com \ /u:$(...
1
vote
1answer
3k views

How to apply pipe zenity/yad progress bar?

I need to display a progress bar with zenity or yad with pacaur/pacman or yaourt in Arch Linux/Manjaro. The problem is that I can't capture the actual process with pacaur or other, only with pkcon, ...
1
vote
2answers
3k views

Zenity refuses to work in background

I'm trying to create a background bash script which creates a popup in certain circumstances, however, my code only works when run manually in a terminal (e.g. not in the background). I've tried ...
4
votes
3answers
9k views

How do I create a dialog with multiple text fields using zenity?

I want to crate a GUI for some command line programs and I need to get info from multiple text fields e.g. 'Username', 'Password' and a checkbox 'Sign automatically?'. I need to set particular ...
1
vote
1answer
514 views

why do I get no output from zenity in shell script under gnome-schedule

I am using Fedora Linux 12, and intend to update to an up-to-date version soon. To prepare for this I have made a full backup on an external drive. I want to keep this backup up to date, using rsync, ...
1
vote
2answers
719 views

What's wrong with my zenity dialog? selector is not extending vertically

zenity list dialog looks different after a system upgrade, %> zenity --text "Select" --list --column="Profile" --list a b c Any idea on the extra space in the dialog? The selector should extend ...
1
vote
2answers
175 views

GUI message box in SLES 11

I am using SLES 11 and I often run long processes. I am looking for a method to flash an alert box or a message box when the work is done. In Ubuntu there is zenity which can flash an info box. I am ...
3
votes
4answers
10k views

How to display a (zenity/GUI) dialog to the user after a root cron task has completed

I have a simple periodic cron task that must run as root. I want to use Zenity (or similar) to display a GUI informational dialog to user 1000 (or logged in user or all users) when the cron task ...
3
votes
4answers
10k views

Zenity dialog windows have excessive height and cannot be resized. Bug workaround anyone?

I'm trying to do some things in zenity, and it's been driving me bonkers. To illustrate my problem, try running this: zenity --info --text "Hello there friends." Simple enough right. Now try this: ...
2
votes
1answer
640 views

Make message box of zenity scalable?

When output contains lots of lines, zenity --info --text doesn't make it scale-able, and zenity --text-info only accept output from a file. What can I do now? Maybe other zenity like utility can help?...
2
votes
1answer
2k views

Terminate script using zenity progress bar

(GNOME2, Ubuntu 10.04 LTS) I've made a nautilus script, so that if I have a directory full of various codecs, then I just need to right click in that folder -> Scripts -> THISSCRIPT.txt, then presto, ...
2
votes
2answers
3k views

How to pass data outside process for zenity progress?

Usually this would be a question about how to pass data from a subprocess to a main process, but maybe zenity has some extra quirks so please focus on zenity. Example: #!/bin/sh ( echo "10" ; sleep ...
2
votes
1answer
2k views

Escape text for further passing to zenity

I am going to show an error window using zenity: /usr/bin/zenity --error --text="my error message" The error text to pass is obtained as output from another application. This output may contain ...
5
votes
1answer
3k views

dialog or zenity?

I am working on a project. I have two options for the GUI part. Either use dialog or zenity. I never used any of these tools before. I have to learn one of them. Suggest me which one should I learn ...
3
votes
2answers
2k views

Why is piped input okay to zenity, but <file malfunctions?

My question is as simple as what the zenity --text args say in the example... but what is causing this 100% CPU grab by the redirection? ...(and by the way, is this particular usage of < actually ...