Questions tagged [zenity]

Zenity is free software and a cross-platform program that allows the execution of GTK+ dialog boxes in command-line and shell scripts.

198 questions
1
vote
1 answer

Bash yad ComboBox argument as an array

Does yad support an array sent as an argument to the ComboBox field? Example: yad --form --field="ComboBox:CB" One\!Two\!Three Can I make it work with an array? array=(one two three) yad --form --field="ComboBox:CB" $array
1
vote
0 answers

Struggeling to print out IP (openvpn) Tun0 address

I am working on brushing up my BASH skills and doing a project to add a GUI button to run my openvpn session. I am struggling to print out my TUN0 (VPN) Address to the screen in Zenity. When i run this: "ip address | grep -sw "inet" | cut -d " " -f…
1
vote
3 answers

Formatting piped rsync output for Zenity progress

I'm performing an rsync process to copy files from an SD card and I want to show the progress per file in Zenity during the rsync process per file. I tried Zenity and rsync which seemed perfect for me. It should send the current file and % copied to…
Nowski
  • 173
  • 1
  • 14
1
vote
1 answer

How To Piped Terminal Command Output To Zenity Progress Dialog Text?

I have a simple app with some bash command, for example apt update, and I want to pipe its output to --text parameter in zenity Progress dialog , i tried some options after googling like : gksudo apt update | xargs -L1 -I % zenity --progress…
Hayder Ctee
  • 145
  • 9
1
vote
2 answers

How To Saving Zenity List Output With Its Separator?

I have a simple list window in zenity with some options to choose in a simple shell scripting as showing below : #!/bin/bash VAR=$(zenity --list --multiple --separator="\n" --column="col.1" --column="col.2" FALSE "option 1" FALSE "option 2" FALSE…
Hayder Ctee
  • 145
  • 9
1
vote
1 answer

Pass data from for loop to zenity progress

I have a for loop for loop over an array which holds files (or besser filenames) i want to display a zenity progress bar, which shows the current file in the for loop. With the following code i managed to display the zenity progress bar but it only…
Nico
  • 323
  • 4
  • 14
1
vote
2 answers

Is it possible to run script in foreground via Ansible

I use Ansible to push something to nodes and I wanted to use Zenity to warn the user who is using a node that I am doing something but I am unable to figure out how to run script displaying on nodes foreground. It is possible to run a script via…
Jan Beneš
  • 11
  • 3
1
vote
0 answers

An issue with zenity and printf (C stdio)

I'm trying to make a graphical utility with bash, zenity and a script written in C and there is an issue with progressbar, zenity ignores input from the C script. For example: #include #include int main(int argc, char *argv[])…
1
vote
1 answer

Zenity GUI for chattr and lsattr

Description: Hello Stackers, i'm currently making a zenity GUI for the command chattr. What i'm trying to do is to show and change the attributes of a file using zenity --list --checklist to tick the attributes that i want an so, but the main issue…
Basher SG
  • 167
  • 1
  • 8
1
vote
1 answer

zenity list and for loop

for i in $(seq 1 10); do echo 'bla bla' echo 'xxx' echo $i done | select=$(zenity --list --title="title" --text="text" --column="X" --column="Y" --column="Z"); I try to create a checklist with zenity, my problem is that $select is always…
Daniel
  • 11
  • 1
  • 3
1
vote
0 answers

Zenity form from hell

This editable zenity form is filled with info gathered from a file ( called ip.txt) and shown to the user. If the user makes a change to the form ( t.ex changing the ip to 10.0.0.100 instead of what is stated in the form ) i want to save those…
hibridpc
  • 11
  • 3
1
vote
0 answers

Zenity Scrolling in Forms Dialog

I am creating a system in bash that uses zenity which creates a very long forms dialog. This dialog is large enough that it does not fit on the screen and it would appear that there is no way of scrolling down, hence the user cannot fill out all the…
arctic_hen7
  • 1,344
  • 11
  • 13
1
vote
2 answers

how to change zenity input separator

Is it possible to change zenity row (i.e. line) input separator like the option --separator changes the output separator? I know that piping through tr '\t' '\n' would help, but is it possible another way? Thanks
Alex
  • 124
  • 1
  • 12
1
vote
1 answer

Zenity won't render Unicode characters

I'm trying to run a simple Zenity dialog where I catch user's input: zenity --forms --title="Title" --add-entry="Comment" When I write in ASCII characters it catches them just fine, however, I when I the input contains Unicode characters (namely…
wallace
  • 307
  • 3
  • 12
1
vote
1 answer

Zenity list find results

I am trying to make a list of all find results but it gets all results as one option. How to make every result different option to choose and store it in CHOICE? CHOICE=$(zenity --list --title "Choose file:" --column=Files "$(find $DIRECTORY -name…