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…
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…
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…
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…
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…
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…
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…
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…
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…
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…
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…
Ive been trying to get Steam Tinker to work on my pc but to do so i need to install the YAD, i looked into the actual Yad github but i have a hard time understanding it so i went with the AppImage that is detailed on the ST github…
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…
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…
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" \
…