-
yad > les variables de sortie
Display a box with all of the installed desktop applications :
yad --icons --read-dir=/usr/share/applications
Use background and foreground colours, change font and font size :
echo Ship | yad --text-info "Ship" --fontname="Monospace Italic 30" --fore=red --back=green --justify=left --wrap yad --text-info --back=red --fore=white < hello.txt --fontname="Monospace bold italic 20" lxsplit -j file.avi.001 & while pkill -0 lxsplit; do echo running sleep 0.5 done | yad --progress --pulsate --auto-close --auto-kill --button gtk-cancel:1 WD="/mnt/home/create-wd" mkdir "$WD"
http://www.thelinuxrain.com/articles/multiple-item-data-entry-with-yad
SIMULER UNE RECHERCHE
#!/bin/sh help(){ yad --window-icon="gtk-find" --center --title="Recherche" --text="Double click on results to open the file." } export -f help look(){ loc=${1} name=${2} startdate=${3} enddate=${4} startsize=${5} endsize=${6} find $loc -name "$name" -newermt "$startdate" ! -newermt "$enddate" -size +$startsize"k" ! -size +$endsize"k" | \ yad --width=600 --height=400 --separator=" " --window-icon="gtk-find" --title "Search Results" \ --center --column "Files" --list --dclick-action="rox" } export -f look yad --window-icon="gtk-find" --title="Look4 Files" --center --form --separator=" " --date-format="%Y-%m-%d" \ --field="Location:":MDIR "/root" \ --field="Filename:" "*" \ --field="Start Date:":DT "2000-01-01" \ --field="End Date:":DT "2016-12-31" \ --field="Start Size KB:":NUM "0" \ --field="End Size KB:":NUM "1024" \ --field="Find!gtk-find:BTN" 'bash -c "look %1 %2 %3 %4 %5 %6"' \ --button=gtk-help:'bash -c help' \ --button=gtk-quit:0