Code: Select all
yad --title="Test" --text="Test buttons" --form --field="1" --field="2" --field="3" --field="4" --button="gtk-ok:0" --button="gtk-cancel:1"
Code: Select all
yad --title="Test" --text="Test buttons" --form --field="1" --field="2" --field="3" --field="4" --button="gtk-ok:0" --button="gtk-cancel:1"
Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<openbox_menu xmlns="http://openbox.org/3.4/menu">
<menu id="root-menu" label="MENU 5">
<item label="" icon="/usr/share/icons/Tango/32x32/actions/go-home.png"><action name="Execute"><command>sh -c "cp /root/.config/openbox/menu1.xml /root/.config/openbox/menu.xml && openbox --reconfigure;xdotool mousemove_relative --polar 280 80; xdotool click 3;xdotool mousemove_relative --polar 100 80"</command></action></item>
<item label="XFE" icon="/usr/share/icons/Tango/32x32/apps/file-manager.png"><action name="Execute"><command>xfe</command></action></item>
<item label="dar" icon="/root/.portugal.png"><action name="Execute"><command>yad --button='gtk-quit:1' --title=dar__to-give --image /root/Verbs/ar/dar__to-give.png</command></action></item>
<item label="deitar" icon="/root/.portugal.png"><action name="Execute"><command>yad --button='gtk-quit:1' --title=deitar__to-lay_to-put-(down)_to-put-to-bed_to-throw --image /root/Verbs/ar/deitar__to-lay_to-put-(down)_to-put-to-bed_to-throw.png</command></action></item>
<item label="deixar" icon="/root/.portugal.png"><action name="Execute"><command>yad --button='gtk-quit:1' --title=deixar__to-let_allow_to-leave-(behind) --image /root/Verbs/ar/deixar__to-let_allow_to-leave-(behind).png</command></action></item>
<item label="dizer" icon="/root/.portugal.png"><action name="Execute"><command>yad --button='gtk-quit:1' --title=dizer__to-say_tell --image /root/Verbs/er/dizer__to-say_tell.png</command></action></item>
<item label="estar" icon="/root/.portugal.png"><action name="Execute"><command>yad --button='gtk-quit:1' --title=estar__to-be_temporary --image /root/Verbs/ar/estar__to-be_temporary.png</command></action></item>
<item label="falar" icon="/root/.portugal.png"><action name="Execute"><command>yad --button='gtk-quit:1' --title=falar__to-speak --image /root/Verbs/ar/falar__to-speak.png</command></action></item>
<item label="haver" icon="/root/.portugal.png"><action name="Execute"><command>yad --button='gtk-quit:1' --title=haver__to-be_impersonal__to-have_auxilliary --image /root/Verbs/er/haver__to-be_impersonal__to-have_auxilliary.png</command></action></item>
<item label="ir" icon="/root/.portugal.png"><action name="Execute"><command>yad --button='gtk-quit:1' --title=ir__to-go --image /root/Verbs/ir/ir__to-go.png</command></action></item>
<item label="pedir" icon="/root/.portugal.png"><action name="Execute"><command>yad --button='gtk-quit:1' --title=pedir__to-ask-for_to-beg --image /root/Verbs/ir/pedir__to-ask-for_to-beg.png</command></action></item>
<item label="poder" icon="/root/.portugal.png"><action name="Execute"><command>yad --button='gtk-quit:1' --title=poder__to-be-able_can --image /root/Verbs/er/poder__to-be-able_can.png</command></action></item>
<item label="ser" icon="/root/.portugal.png"><action name="Execute"><command>yad --button='gtk-quit:1' --title=ser__to-be_permanent --image /root/Verbs/er/ser__to-be_permanent.png</command></action></item>
<item label="ter" icon="/root/.portugal.png"><action name="Execute"><command>yad --button='gtk-quit:1' --title=ter__to-have --image /root/Verbs/er/ter__to-have.png</command></action></item>
<item label="trazer" icon="/root/.portugal.png"><action name="Execute"><command>yad --button='gtk-quit:1' --title=trazer__to-bring --image /root/Verbs/er/trazer__to-bring.png</command></action></item>
<item label="ver" icon="/root/.portugal.png"><action name="Execute"><command>yad --button='gtk-quit:1' --title=ver__to-see --image /root/Verbs/er/ver__to-see.png</command></action></item>
<item label="vestir" icon="/root/.portugal.png"><action name="Execute"><command>yad --button='gtk-quit:1' --title=vestir__to-dress_wear_put-on --image /root/Verbs/ir/vestir__to-dress_wear_put-on.png</command></action></item>
</menu>
</openbox_menu>
Code: Select all
#! /bin/bash
title=$(echo "Select")
combo()
{
choice=$(yad --title="$title" --text='Travel Items' --form --field='Show:CB' '1.Airline Tickets!2.Cars' --button="Exit:1" --button="OK:0")
ret=$?
if [[ $ret -ge 1 ]]; then
exit 0
fi
choice=$(echo $choice | awk 'BEGIN {FS="|" }{print $1}')
echo $choice
title=$(echo "$choice")
}
while true ; do
combo
done
Code: Select all
#! /bin/bash
title=$(echo "Select")
item='1.Airline Tickets!2.Cars!3.Folding Bike!4.Linux Netbook!5.Lightweight Clothes'
combo()
{
choice=$(yad --title="$title" --text='Travel Items' --form --field='Show:CB' "$item" --button="Exit:1" --button="OK:0")
ret=$?
if [[ $ret -ge 1 ]]; then
exit 0
fi
choice=$(echo $choice | awk 'BEGIN {FS="|" }{print $1}')
echo $item
echo $choice
title=$(echo "$choice")
item=$(echo $item | sed "s/$choice"!"//g" | sed "s/"!"$choice//g")
echo $item
item=$choice"!"$item
}
while true ; do
combo
done
Code: Select all
yad --file-selection --add-preview
Code: Select all
wp=`yad --title "Select Wallpapers" --geometry=400x500 --file-selection --multiple --add-preview`
Yeah, me too now, the thumbnailer was a little slow creating them.stemsee wrote:In fact I am getting thumbnails in yad and preview.