Soumis par trax le mar, 07/10/2008 - 22:16
j=0
for i in `find ~/.fluxbox/backgrounds -maxdepth 1 -type f`
do
nom[$j]=$i
j=$[$j+1]
echo $j $i
done
while true
do
fbsetbg -f ${nom[$[$RANDOM %$j]]}
sleep 5s
done
ligne 5 : crée le tableau avec toutes les images (chemin)
ligne 7 : incrémente j
Commentaires
Joli personnellement j'aime
Joli personnellement j'aime bien :
fbsetbg -r ~/.fluxbox/backgrounds
(man fbsetbg)