Questions tagged [yad]

a fork of zenity, used for creating GUI dialogs

a fork of zenity, used for creating GUI dialogs

17 questions
7
votes
4 answers

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 window, etc.). I'm an Ubuntu(11.04) scripting noob…
Harry
  • 71
  • 1
  • 1
  • 2
5
votes
1 answer

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 time. In either case I’d like to take that code and…
WinEunuuchs2Unix
  • 99,709
  • 34
  • 237
  • 401
4
votes
1 answer

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 to be installed first). I can't figure out how to…
WinEunuuchs2Unix
  • 99,709
  • 34
  • 237
  • 401
4
votes
2 answers

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 Associated with a desktop file as application…
user47206
4
votes
1 answer

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.txt r.txt t.txt v.txt x.txt z.txt $ I can use…
DK Bose
  • 41,240
  • 22
  • 121
  • 214
4
votes
3 answers

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 $ bash --version GNU bash, version 5.0.3(1)-release…
WinEunuuchs2Unix
  • 99,709
  • 34
  • 237
  • 401
2
votes
1 answer

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 terminal, or drag/drop the URL to the MPV…
JaSauders
  • 557
  • 1
  • 8
  • 17
2
votes
1 answer

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, "image" open with eog (eye-of-gnome) and "audio" open…
WinEunuuchs2Unix
  • 99,709
  • 34
  • 237
  • 401
2
votes
2 answers

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 the two using the diff command. The point is to…
WinEunuuchs2Unix
  • 99,709
  • 34
  • 237
  • 401
2
votes
1 answer

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? references a gsettings that is new to…
WinEunuuchs2Unix
  • 99,709
  • 34
  • 237
  • 401
1
vote
0 answers

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 yad replaces the existing picture with the picture…
1
vote
2 answers

How to use yad to terminate application

I want to use yad system tray notification to terminate an application (vlc for example), I used the following code: yad --notification --no-middle --image=emblem-warning --menu='Cancel ! kill $pid' --text="My Tooltip" & vlc & pid=${!} The code…
1
vote
2 answers

yad notification in Gnome Shell 3

yad notifications (https://sourceforge.net/p/yad-dialog/wiki/NotificationIcon/) like in this example are not displayed: yad --notification --image="gtk-help" --command="echo 'Hello World'" --text="The notification's tooltip" I guess it has to do…
phobic
  • 175
  • 1
  • 10
1
vote
1 answer

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="/"; OUTPUT=$(yad \ --title="JPG and MP3 to MP4" \ …
RE666
  • 21
  • 1
  • 3
0
votes
0 answers

What can I use as an alternative to yad's notification + menu in Ubuntu 22.04?

I have some scripts that use yad's notification + menu. It is ideal for my purposes. Unfortunately, the notification uses a discontinued method that no longer works in Gnome 42 on Ubuntu 22.04 — the icon isn't displayed, and so the menu is…
Paddy Landau
  • 4,510
  • 4
  • 34
  • 60
1
2