Questions tagged [yad]

`yad` (Yet Another `dialog`) is a CLI tool to create graphical user prompts.

yad, Yet Another Dialog, is Gtk+-based dialog construction kit. It allows simple and complex dialogs to be built from the command-line, and is intended for use in shell scripts. It is similar in concept to dialog, Zenity etc.

Use this tag for questions about the use of yad, e.g. how to construct a specific dialog using yad.

13 questions
16
votes
4 answers

Is there a command to write text to a file without redirection, pipe or function?

Pipes and redirection are two of the most powerful functions in Linux, and I love them. However, I'm stuck with a situation where I need to write a fixed piece of text to a file without using a pipe, redirection or a function. I'm using Bash in case…
Paddy Landau
  • 306
  • 2
  • 10
1
vote
1 answer

Check which entry is empty with yad or zenity

I'm trying to create an array of four elements using a form consisting of 4 entries: new_prop=($(zenity --forms --title="my-script" --text="Insert the values" --separator=" " \ --add-entry="Name" \ …
1
vote
1 answer

yad: how to set font size? Is there a bug?

I use yad fonts as pango style, like the man page required: yad --width=250 --text 'foo bar base' --fontname="Serif bold italic 90" there's no difference if I do yad --width=250 --text 'foo bar base' --fontname="Serif bold italic 10" bug or…
1
vote
1 answer

Yad: text selection via button OR input field

i want to create a yad command which displays 1 button and 1 input field. I want that when the user clicks on the button a predefined text is returned to stdout. And when the user writes something into the input field and presses enter/clicks on…
Loading
  • 113
  • 4
1
vote
0 answers

Problem with yad and variable's spaces its arguments

My code works with: binariesPathList="FALSE 'inkscape' TRUE '/home/jeanfar/Downloads/binary-portable/inkscape/Inkscape-1.0-4035a4f-x86_64.AppImage' FALSE '/home/jeanfar/Downloads/binary-portable/inkscape/Inkscape-f54ab5f-x86_64.AppImage' FALSE…
DATALOT
  • 427
  • 4
  • 14
1
vote
1 answer

Redirect YAD results into file AND still give exit codes from buttons to STDOUT

I have 2 custom buttons in my yad --form. The user input aka results get redirected into a .txt file for later use. Thats working fine. But it seems like the exit code is not given to STDOUT anymore, when I'm redirecting in this way. But I need the…
Wu Wei
  • 113
  • 5
1
vote
1 answer

Output NamingVariable for Multiple Files in Bash Script

I have a script I've created that will pad a series of Jpgs, create a subdirectory in the working directory, move the padded Jpgs to the subdirectory, change to the subdirectory, and then use Imagemagick's convert command to overlay a single…
whitewings
  • 2,377
  • 7
  • 32
  • 53
1
vote
1 answer

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 options are much welcome! NOT REQUIRED: As an opinion…
Aquarius Power
  • 4,099
  • 5
  • 38
  • 56
0
votes
2 answers

How to store and print variables with special characters in shell/bash/sh/

I basically need to load, save and reload multiple times and in different forms a variable that contains arguments for a program. The problem is that this variable can't be treated as a usual variable because it contains the "-" sign in the start.…
DATALOT
  • 427
  • 4
  • 14
0
votes
2 answers

parsing variable which contains vertical bar

I have a bash script that involves the output of yad. By default, yad outputs its results separated by pipe characters "|". I have a string variable output. Echoing it shows it contains this: /dev/sde| name0|name1|name2| I want all those vertical…
Botspot
  • 151
  • 6
0
votes
1 answer

About ||||| (pipe or vertical bars) In yad --form --button

During Working with yad --form displayed some |||(vertical bars) after clicked a button, what are this bars indicating & how I can STOP them to display? Providing sample code, You can experience yad --width=400 --height=200 --button="gtk-ok" --form…
AlphaCoder
  • 163
  • 1
  • 3
  • 8
0
votes
1 answer

Yad forking and return results

I'm trying to make a yad process collaborate with another (a mounter but that's not very important). I have a code structure like this (simplified) in the critical part: ` yad --list --button=gtk-close:1 --button=gtk-ok:0 "${CONF_LIST[@]}"…
i30817
  • 187
  • 7
0
votes
1 answer

how to make a Yad split window, upper split = text and lower split = progress bar?

I can't work out how to make a Yad split window, upper split = text and lower split = progress bar? My attempt below failed. id=$(echo $[($RANDOM % ($[10000 - 32000] + 1)) + 10000] ) Settings=$(cat ~/tmp/YadWindow4SelectedSettings.txt) { echo…
Giles
  • 877
  • 7
  • 18