Questions tagged [yad]

YAD (Yet Another Dialog) is a program which allows you to display GTK+ dialog boxes from the command-line or shell scripts. YAD depends on GTK+ only. It is a fork of Zenity with many improvements, such as custom buttons, additional dialogs, HTML support, pop-up menu in notification icon and more.

YAD (Yet Another Dialog) is a program which allows you to display GTK+ dialog boxes from the command-line or shell scripts. YAD depends on GTK+ only. It is a fork of Zenity with many improvements, such as custom buttons, additional dialogs, HTML support, pop-up menu in notification icon and more.

Homepage: https://sourceforge.net/projects/yad-dialog/

37 questions
4
votes
1 answer

How do I get yad for gtk3 to customize button font, background and foreground color?

I'm using yad for GTK3 (not GTK2) on a Raspberry Pi 3 to display a set of buttons. The screen is far away from where I sit so I need a way to make the button text and highlighted button stand out. I'm totally unfamiliar with the inner workings of…
Rick
  • 103
  • 7
3
votes
2 answers

Cannot create shared memory for key 12345: File exists

When I run some script using yad notebook, I get this error: $ ./example.sh yad: cannot create shared memory for key 12345: File exists After rebooting, it was good for a few times; but now, it happens every time. How can I fix that?
Wookie
  • 41
  • 1
  • 4
2
votes
0 answers

bash yad and gnu parallel: multi-progress bar

If you run the following: func() { sleep 0.3 } export -f func percent1=0 for n in {1..4} ; do seq 30 | parallel -j 5 --bar func {} 2> >(yad --width=500 --progress --auto-close) let percent1+=25 echo "1:$percent1" done | yad…
2
votes
1 answer

How to get values in YAD when combining form and button // Exit codes for user-specified buttons

#!/bin/bash array=$(yad \ --separator="\n" \ --form \ --field="Number":NUM 1 \ --field="Text":TEXT \ --button="b1:1" \ --button="b2:2" \ --button="b3:3" ) echo $? echo "${array[@]}" When pressing b1 or b3, the array is empty. Why? How to modify…
doxi
  • 23
  • 3
2
votes
2 answers

Bash - assign variables to yad values - sed usage in for loop

In the code below I am attempting to assign variables to the two yad values Radius and Amount. This can be done with awk by printing the yad values to file but I want to avoid this if I can. The string (that is, both yad values) is assigned a…
GeorgeC
  • 81
  • 2
  • 9
2
votes
2 answers

Can a YAD button invoke a function within a script?

I am playing around with YAD dialogs in BASH and am having trouble with the button construction. I can't get a YAD button to call a function in the same script. Is there a way to do this? My understanding is the if I use the following…
chuckj
  • 135
  • 1
  • 12
2
votes
2 answers

how to use yad in bash scripting?

so i am writing a small bash script to automate a few tasks...and i have stumbled on to a issue here.. my problem is val=$ ( yad --center --width=300 --height=100 --title "Alert" --image "dialog-question" --buttons-layout=center --text "Search…
2
votes
1 answer

Add buttons in yad notebook

Anyone who can help me with YAD (Yet Another Dialog). I'm designing a GUI for a software installation. I'm stuck with the form field. Here is the sample code that I'm working with : sersoft() { root_verify #fucntion for root verification …
StackUseR
  • 884
  • 1
  • 11
  • 40
2
votes
1 answer

Use variables inside YAD

I can't find a way to using variables inside YAD I have the following script: #!/bin/bash USERS=$(awk '{print $1}' `pwd`/names.txt | sed -e ':a' -e 'N' -e '$!ba' -e 's/\n/!/g') YAD=$(yad --title="Hello" \ --form \ --field="User:":CB…
Ramirous
  • 149
  • 2
  • 12
2
votes
1 answer

Check FTP login data using bash

I tried searching for a simple login data check for ftp connection in my bash script. I tried using wput and grep to get the output for a progress bar. Is there a way to check the login data first? I think wput doesn't support this... Is there…
user3006625
  • 33
  • 1
  • 7
2
votes
3 answers

How to download xhtml webpage as it is using wget

Hi when I try to right click and save page as the web page is saved as .xhtml . But when I try to download it using wget or curl it is being downloaded as .html. Is there any way that I can download it as it is like .xhtml? I really need it.
jeevanreddymandali
  • 395
  • 3
  • 8
  • 23
1
vote
2 answers

When using Yad, can a button be made the default?

The title sets the question. If it can, what is the coding? Present coding is:- yad --center --on-top --text-align=center --buttons-layout=center --title ${0##*/} --width=150 --height=60 --text "Do you want tea?" --button=gtk-no:1…
John_S
  • 53
  • 2
  • 8
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
1 answer

Bash - assigning variables - Yad paned notebook

Following on from this question, and changing the question, another way to write the Yad notebook script is as follows. This removes the & from res1 & and asynchronous operation. As mentioned @Barmar, "scripts operate sequentially, whereas there is…
GeorgeC
  • 81
  • 2
  • 9
1
vote
1 answer

YAD multi-progress bar with background processes (bash)

I am trying to pipe multiple scripts into a YAD multi-progress bar and still obtain the exit status of the child processes. Here is what I have so far.. This would be my main script: (./Script1.sh & X=$!) & (./Script2.sh & Y=$!) | yad…
Jon Bell
  • 17
  • 5
1
2 3