Page 1 of 1

Using Yet Another Dialog (YAD)

Posted: Fri Aug 30, 2019 10:03 am
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/

Re: Using Yet Another Dialog (YAD)

Posted: Fri Aug 30, 2019 6:51 pm
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

Re: Using Yet Another Dialog (YAD)

Posted: Fri Aug 30, 2019 7:56 pm
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

Re: Using Yet Another Dialog (YAD)

Posted: Fri Aug 30, 2019 8:04 pm
by manyroads
Isn't it amazing how many ways we can find to do things? I love the innovation. Never say never. :needcoffee:

Re: Using Yet Another Dialog (YAD)

Posted: Fri Aug 30, 2019 8:13 pm
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:

Re: Using Yet Another Dialog (YAD)

Posted: Sat Oct 26, 2019 9:16 am
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..

Re: Using Yet Another Dialog (YAD)

Posted: Sat Oct 26, 2019 6:03 pm
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. ;)

Re: Using Yet Another Dialog (YAD)

Posted: Sun Dec 15, 2019 8:53 pm
by jeffreyC
Do you have any tips for converting scripts and Thunar custom actions that are written for zenity to use YAD instead?

Re: Using Yet Another Dialog (YAD)

Posted: Sun Dec 15, 2019 9:14 pm
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.

Re: Using Yet Another Dialog (YAD)

Posted: Sun Dec 15, 2019 9:58 pm
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?

Re: Using Yet Another Dialog (YAD)

Posted: Mon Dec 16, 2019 9:02 am
by manyroads
jeffreyC wrote: Sun Dec 15, 2019 9:58 pm
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?
I'm afraid you are on your own with that. I suppose you will need to write code (scripts?) to access files & folders and use thunar to duplicate the thunar functions you want.

Edit: You can get clues from Mother Google using this text for ideas: perform file management using zenity