Skip to main content

Questions tagged [yad]

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

0 votes
0 answers
124 views

How to print stream of stdout to a window using zenity or yad?

Tools like zenity and yad are gtk-based dialog makers used to create user-interfaces from shell scripts. How to print the live stream of the output of piped commands to a window using those tools? I ...
Zeta.Investigator's user avatar
1 vote
1 answer
225 views

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=" &...
user9952796's user avatar
1 vote
1 answer
903 views

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 ...
Mévatlavé Kraspek's user avatar
1 vote
1 answer
2k views

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 ...
Loading's user avatar
  • 113
18 votes
4 answers
5k views

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, ...
Paddy Landau's user avatar
1 vote
0 answers
728 views

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/...
DATALOT's user avatar
  • 459
0 votes
2 answers
6k views

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 ...
DATALOT's user avatar
  • 459
0 votes
2 answers
1k views

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/...
Botspot's user avatar
  • 151
0 votes
1 answer
1k views

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 ...
AlphaCoder's user avatar
1 vote
1 answer
1k views

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, ...
Wu Wei's user avatar
  • 113
0 votes
1 answer
938 views

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-...
i30817's user avatar
  • 197
0 votes
1 answer
879 views

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 ~/...
Giles's user avatar
  • 887
1 vote
1 answer
165 views

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 ...
whitewings's user avatar
  • 2,457
2 votes
1 answer
3k 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 ...
Aquarius Power's user avatar