We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [yad]

a fork of zenity, used for creating GUI dialogs

Filter by
Sorted by
Tagged with
0
votes
0answers
12 views

How to put YAD form fields value into variable after submit?

How to put YAD form fields value into variable after submit? My script actually looks like this: #!/bin/bash default_jpg='/'; default_mp3='/'; default_resolution='1920:1080'; default_filename="/"; ...
4
votes
1answer
44 views

How do I get a Zenity feature in Yad?

I have the following twenty-six files in a folder: $ ls a.txt c.txt e.txt g.txt i.txt k.txt m.txt o.txt q.txt s.txt u.txt w.txt y.txt b.txt d.txt f.txt h.txt j.txt l.txt n.txt p....
2
votes
3answers
78 views

Test if yad version >= specific version number

I need a script to check if yad (and other programs) version number is >= to a specific number. For example I have: $ yad --version 0.40.0 (GTK+ 3.24.8) $ gedit --version gedit - Version 3.32.0 $ ...
1
vote
1answer
527 views

Bash one-liner to display ALL `gsettings` in GUI dialog window

Recently I've been encountering many questions in Ask Ubuntu that require changing gsettings to solve the problem. For example this question: How to prevent shutdown when one of two batteries is empty?...
3
votes
1answer
6k views

Windows Subsystem for Linux desktop shortcut to GUI

I have a bash script called lock-screen-timer which calls yad to mount a GUI dialog box. Under Windows 10 and the Windows Subsystem for Linux (WSL) I can run it from the bash prompt (note VcXsrv has ...
2
votes
1answer
822 views

Launch command in gnome-terminal, then close gnome-terminal without ending executed command?

I have a semi oddball thing I'm tinkering with. I'm looking for a way to make launching MPV (video player) to video links easier. MPV's default behavior is to either launch mpv https://url.of.video in ...
1
vote
1answer
756 views

List of file types and default Ubuntu applications to open with

I'm writing a humble file manager and am seeking a list of different file types and what default applications Ubuntu uses to open them with. So far I've only figured out "text" open with gedit, "...
2
votes
2answers
267 views

Code version control between local files and AU answers

Introduction Note this is a self-answered question to “share knowledge”. A “bash only” script is required to download Ask Ubuntu answers linked to source code (scripts) on my system. Then compare ...
4
votes
1answer
2k views

Bash template to use zenity (or yad) to insert / edit / delete records in a file or database

I’m looking for a bash template that uses zenity or yad to maintain a list of records. The template could be a shopping check list with print option or it could be a list of servers to monitor ping ...
1
vote
0answers
131 views

Yad gui to replace a picture in a directory?

I need a yad script to perform 2 functions. 1. Image slect I have a picture in a directory : /usr/share/picture.jpg I want to create a yad gui that asks the user to select his own picture and then ...
4
votes
2answers
2k views

How to edit YAD question labels (example)?

YAD is a Zenity fork. I have this yad script: #!/bin/bash yad --text="Execute the file? (press 'Cancel' to open in text editor)" case $? in 0)thunar "$1" ;; 1)gedit $1 ;; esac ...
6
votes
3answers
10k views

How can I easily create a GUI dialog with a bash script?

I need to present some text along with the items(about 15 values) for each of two Bash list(file) records. On the same screen I need to present a three way selection, (buttons, scrolled selection ...