YAD
I was looking for an upgraded Zenity when I found YAD.
I was looking for a version that allows boxes to be pre-populated with defaults.
YAD is a graphical dialog program for shell scripts.
Th first websiteI found was discussing Puppy Linux menus (https://www.linux.org/threads/create-a-simple-gui-to-run-scripts-from.44473/).
From there I when to http://smokey01.com/yad/, this was a basic beginners guide.
I tried a simple script:
#!/bin/bash
RESULT=$(yad --borders=10 --title="simple form" --text="Please enter:"\
--form --field="Last Name": "AlanX" --field="First Repo" --field="Date"\
)
echo $RESULT
Worked great. YAD was even installed by default.
This website has all the documentation (https://yad-guide.ingk.se/YAD_Guide.html).
I found that the "HTML" option did not work, but I believe the option needs to be turned on during compilation.
The format of the results string will make interfacing in C simpler.
AlanX
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.