Posted: Fri 09 Oct 2015, 19:26
My impression is most people in this thread are experienced yad-coders, to whom my examples are probably boring. My apologies to you, I'm only sharing my learning process for other yad-beginners and to possibly help build a small examples library for smokey01. (Victor's examples are often way above beginners level)
Form-field-buttons:
Last night I was reading this in the Mankier Yad Manual, under "Form options":
>>Does anyone understand his %N method?<< Hours after bedtime, I gave up and almost accidentally found my own solution. So today, I tried to build something useful...a yad-panel:
Happy Bert
It's fun to just play with the value in --columns:
One column:
Three columns:
Six columns:
Here's my desktop with yad-panel:
It works really well. I like it and think it's worth developing further.
If anyone wants to play with this script, I've attached it here. Download and unpack it anywhere. It's a very small script, the weight comes from the quality icons. Most of the icons come from iconarchive.com and I've compressed them without quality loss with the help of TinyPNG.
Have a nice weekend!
Form-field-buttons:
Last night I was reading this in the Mankier Yad Manual, under "Form options":
A bit cryptic, but I could smell a solution in there...Initial value is a command which is running when button is clicked. A special sympols %N in command are replaced by value of field N.
>>Does anyone understand his %N method?<< Hours after bedtime, I gave up and almost accidentally found my own solution. So today, I tried to build something useful...a yad-panel:
Code: Select all
#!/bin/sh
yad --form --undecorated --no-buttons --geometry="+0+0" \
--columns="1" \
--field="!./icons/file-manager.png! Rox :fbtn" "rox $HOME" \
--field="!./icons/terminal-icon.png! lxterminal :fbtn" lxterminal \
--field="!./icons/mozicon64.png! Palemoon :fbtn" /mnt/home/palemoon/palemoon \
--field="!./icons/Apps-geany-icon.png! Geany :fbtn" geany \
--field="!./icons/Paint.png! mtPaint :fbtn" /usr/bin/mtpaint \
--field="!./icons/seamonkey.png! Composer :fbtn" mozedit \
It's fun to just play with the value in --columns:
One column:
Three columns:
Six columns:
Here's my desktop with yad-panel:
It works really well. I like it and think it's worth developing further.
If anyone wants to play with this script, I've attached it here. Download and unpack it anywhere. It's a very small script, the weight comes from the quality icons. Most of the icons come from iconarchive.com and I've compressed them without quality loss with the help of TinyPNG.
Have a nice weekend!