Using Yet Another Dialog (YAD)

Here is where you can post tips and tricks to share with other users of MX. Do not ask for help in this Forum.
Message
Author
User avatar
manyroads
Posts: 2657
Joined: Sat Jun 30, 2018 6:33 pm

Using Yet Another Dialog (YAD)

#1 Post by manyroads »

If you are looking for an easy way to access your desktop and internet helpfiles or exit your Desktop, YAD (Yet Another Dialog) might offer the functionality you need. I have written and provided detailed help & images here (btw. YAD runs on ANY Linux distro & Desktop):

http://eirenicon.org/knowledge-base/yad ... er-dialog/
Pax vobiscum,
Mark Rabideau - ManyRoads Genealogy -or- eirenicon llc. (geeky stuff)
i3wm, bspwm, hlwm, dwm, spectrwm ~ Linux #449130
"For every complex problem there is an answer that is clear, simple, and wrong." -- H. L. Mencken

User avatar
manyroads
Posts: 2657
Joined: Sat Jun 30, 2018 6:33 pm

Re: Using Yet Another Dialog (YAD)

#2 Post by manyroads »

Here is a small image of a YAD Dialog to launch FreeOffice apps.

Here's the code (for the Yad Bash script):

Code: Select all

#!/bin/bash
yad --title "Free Office Links" --form --width=325 --height=200 --text="<b>FreeOffice Application Launcher</b>" --image "calligraplan" --image-on-top \
--field="<b>Textmaker</b>":fbtn "/usr/bin/textmaker18free" \
--field="<b>Presentations</b>":fbtn "/usr/bin/presentations18free" \
--field="<b>Planmaker</b>":fbtn "/usr/bin/planmaker18free" \
--button=gtk-cancel:1
You do not have the required permissions to view the files attached to this post.
Pax vobiscum,
Mark Rabideau - ManyRoads Genealogy -or- eirenicon llc. (geeky stuff)
i3wm, bspwm, hlwm, dwm, spectrwm ~ Linux #449130
"For every complex problem there is an answer that is clear, simple, and wrong." -- H. L. Mencken

User avatar
KoO
Posts: 491
Joined: Fri Feb 10, 2017 12:21 am

Re: Using Yet Another Dialog (YAD)

#3 Post by KoO »

Nice work mate now I have two ways to logout.
The text in geany below right of your logout is the i3 code for my logout..

Image

Image
Main : MX 19.1-AHS (i3) 5.4.13-1~mx19+1, Asus B450-i AMD 5 3600 , 32gb Hyper-X 3200 , GTX970 . :linuxlove:
Lenovo T430 : Debian10 antiX17 (i3) , 4.20.12 , i5 , 12gb .
Lenovo X220 : Test Machine (ATM)

User avatar
manyroads
Posts: 2657
Joined: Sat Jun 30, 2018 6:33 pm

Re: Using Yet Another Dialog (YAD)

#4 Post by manyroads »

Isn't it amazing how many ways we can find to do things? I love the innovation. Never say never. :needcoffee:
Pax vobiscum,
Mark Rabideau - ManyRoads Genealogy -or- eirenicon llc. (geeky stuff)
i3wm, bspwm, hlwm, dwm, spectrwm ~ Linux #449130
"For every complex problem there is an answer that is clear, simple, and wrong." -- H. L. Mencken

User avatar
KoO
Posts: 491
Joined: Fri Feb 10, 2017 12:21 am

Re: Using Yet Another Dialog (YAD)

#5 Post by KoO »

You just can't beat a Good window manager and some code The Fun Starts Now. Thanks :cool: Have a cup on me :needcoffee:
Main : MX 19.1-AHS (i3) 5.4.13-1~mx19+1, Asus B450-i AMD 5 3600 , 32gb Hyper-X 3200 , GTX970 . :linuxlove:
Lenovo T430 : Debian10 antiX17 (i3) , 4.20.12 , i5 , 12gb .
Lenovo X220 : Test Machine (ATM)

User avatar
KoO
Posts: 491
Joined: Fri Feb 10, 2017 12:21 am

Re: Using Yet Another Dialog (YAD)

#6 Post by KoO »

@manyroads

Your YAD script has come in so handy with void Linux was over doing sudo reboot halt and the i3-get-window-criteria script was just icing on da cake. Must admit was having trouble getting scripts to run until I realized xwininfo & xprop were not installed all good now.

Code: Select all

24 files = 164K ~/.scripts >$./i3-get-window-criteria
[class="Yad" id=31457283 instance="yad" title="System Logout"] 
-----------------------------------

Code: Select all

for_window [title="System Logout"] floating enable
bindsym $mod+shift+x exec --no-startup-id ~/.scripts/logout.sh
 
Have you made any progress with a program launcher like jgmenu.
Also you must try void everything is the latest version and all source installed programs with xbps also truly non-systemd (not a fork) Have not had one problem.

Thanks for all your help..
Main : MX 19.1-AHS (i3) 5.4.13-1~mx19+1, Asus B450-i AMD 5 3600 , 32gb Hyper-X 3200 , GTX970 . :linuxlove:
Lenovo T430 : Debian10 antiX17 (i3) , 4.20.12 , i5 , 12gb .
Lenovo X220 : Test Machine (ATM)

User avatar
manyroads
Posts: 2657
Joined: Sat Jun 30, 2018 6:33 pm

Re: Using Yet Another Dialog (YAD)

#7 Post by manyroads »

I have tried Void. I generally like it. I have some issues with xbps, it doesn't always sync and download for me. I plan to try it again.

I have ad good success with jgmenu, especially with OpenBox.

As for my latest efforts, I am having a good adventure with HLWM on MX. I may produce a setup with both bspwm & HLWM. ;)
Pax vobiscum,
Mark Rabideau - ManyRoads Genealogy -or- eirenicon llc. (geeky stuff)
i3wm, bspwm, hlwm, dwm, spectrwm ~ Linux #449130
"For every complex problem there is an answer that is clear, simple, and wrong." -- H. L. Mencken

User avatar
jeffreyC
Posts: 522
Joined: Mon May 27, 2019 10:39 am

Re: Using Yet Another Dialog (YAD)

#8 Post by jeffreyC »

Do you have any tips for converting scripts and Thunar custom actions that are written for zenity to use YAD instead?

User avatar
manyroads
Posts: 2657
Joined: Sat Jun 30, 2018 6:33 pm

Re: Using Yet Another Dialog (YAD)

#9 Post by manyroads »

jeffreyC wrote: Sun Dec 15, 2019 8:53 pm Do you have any tips for converting scripts and Thunar custom actions that are written for zenity to use YAD instead?
They really aren't the same sort of tool... Thunar is more for use one files/ directories. Yad & Zenity are more aligned to be OS popup dialogs.
Pax vobiscum,
Mark Rabideau - ManyRoads Genealogy -or- eirenicon llc. (geeky stuff)
i3wm, bspwm, hlwm, dwm, spectrwm ~ Linux #449130
"For every complex problem there is an answer that is clear, simple, and wrong." -- H. L. Mencken

User avatar
jeffreyC
Posts: 522
Joined: Mon May 27, 2019 10:39 am

Re: Using Yet Another Dialog (YAD)

#10 Post by jeffreyC »

manyroads wrote: Sun Dec 15, 2019 9:14 pm
jeffreyC wrote: Sun Dec 15, 2019 8:53 pm Do you have any tips for converting scripts and Thunar custom actions that are written for zenity to use YAD instead?
They really aren't the same sort of tool... Thunar is more for use one files/ directories. Yad & Zenity are more aligned to be OS popup dialogs.
YAD and zenity are often called to pop-up dialogs by Thunar custom actions, such as checking an md5... so how would I successfully convert one written for zenity to work with YAD?

Post Reply

Return to “Tips & Tricks by users”