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
1
vote
2 answers

Bash - using variables in yad form combo box

Bash variables in Yad. The yad '!' field separator is not separating the fields. After researching other questions the yad man page and other yad resources, this has me stumped. I am trying to use variables in a yad form combo box. The variables are…
GeorgeC
  • 81
  • 2
  • 9
1
vote
2 answers

Python-yad Progress Bar not working in python 3.4 but works in python 2.7

I have created a python interface for the yad program. What the code basically does is that, it generates a string which gets passed to the yad program using pythons subprocess and/or pexpect module and executes it Now, Im facing a weird bug where I…
dvenkatsagar
  • 936
  • 7
  • 22
1
vote
0 answers

lftp catch output for progress bar

how I can use unbuffer to capture each output line for lftp? I would like to use this information to update a zenity/yad progress bar. Only after upload I get the full file... With wget works like a charm. Thanks, Michael Here my code: unbuffer -p…
user3006625
  • 33
  • 1
  • 7
1
vote
1 answer

Yad (Yet another Dialog) list columns

I need some help with YAD. So here is the code: contact=$(while read line do firstname=$(echo $line | awk 'BEGIN { FS="|" } { print $2 }') lastname=$(echo $line | awk 'BEGIN { FS="|" } { print $3 }') …
joanne_
  • 117
  • 1
  • 10
0
votes
0 answers

saving text on OK button with Yad

i am playing with YAD and want this command to save the edits to the text on the close yad --text-info --editable --save --confirm-overwrite --show-uri --enable-spell --filename=editableFile.txt --width=400 --height=650 is this possible?
andylondon
  • 176
  • 6
0
votes
1 answer

yad - Menu button command

How does one add a bash command to a menu button in a yad notification. This is my code so far and when you right click on the tray icon, it will show a "Quit" option which when clicked on, does nothing. How does one add functionality to the quit…
janeperritson
  • 17
  • 1
  • 3
0
votes
1 answer

If YAD is a fork of Zenity why is there no --imagelist?

Zenity is used in many of my bash projects, but looking at the advanced features of YAD there are many reasons to switch. After some testing unfortunately I discovered there is no --imagelist option for the list type dialog. This is a major problem…
Gerge
  • 93
  • 6
0
votes
1 answer

How do I print the selected column?

I want to echo the currently selected list when i press a button, but all it does is run the function i assign to the button. I want it to detect if a list was selected, if not show another yad window saying "Please select a Task/Reminder to use…
oxmc
  • 13
  • 3
0
votes
0 answers

Awk in Yad file replace existing value

My current bash script is: #!/bin/bash # Variables fileloc="/home/jerry/scripts/widget" # Backup file first cp $fileloc $fileloc.backup widedit=`(yad --title="Linux Lite - Widget Editor" --borders=20 --text="All fileds
sh_newbie
  • 1
  • 2
0
votes
1 answer

Could last pid variable $! be wrong when using yad?

I'm trying to close a yad window from within bash script using kill command, but pids do allways mismatch. Same on command line. $ yad & pid_01=$! $ kill $pid_01 bash: kill: (31879) - Kein passender Prozess gefunden $ echo $(pidof yad) 31880 $ echo…
MI605
  • 3
  • 2
0
votes
1 answer

Why is this YAD list code not working correctly?

I'm trying to incorporate YAD into my script to add a more GUI feel to it. (It may end up being written in Python at a later date.) I'm able to use similar code to produce a listbox with selectable items in an earlier part of the code without issue,…
John_S
  • 53
  • 2
  • 8
0
votes
1 answer

Yad list get value of selected line in function

I developp a software in linux and i have problem, i have a primary yad window (for this exemple i use the name : w1) and button who execute an second : w2, w2 is list and i want to export the selected line, how I could extract the selected line…
Flygeek
  • 1
  • 1
0
votes
1 answer

BASH with YAD to display avg ping

I am new to bash and I am trying to ping a host and display the average ping times. I want to auto-update that value in a YAD window. I have it set in while loop, but the problem is that I have to close the window for the new value to…
obzen
  • 1
  • 2
0
votes
1 answer

Pass variable from YAD slider bar whenever slider is moved, without clicking Ok

I am running Arch Linux with all the latest updates, and have a simple effective program sct installed to let me adjust screen colour temperature. It is from https://github.com/faf0/sct. I use YAD (Yet Another Dialog) to adjust the variable sent to…
Kes
  • 285
  • 2
  • 17
0
votes
1 answer

Why is my if statement not working (bash - zenity)?

I am using an if statement to run a different response for each option selected in a yad GUI zenity fork. For some reason the if statement works with some options and not with others!? NOTE : I'm substituting '^' for ' in the example opt=^yad…
Linuxrox
  • 1
  • 2