Hau script-e okurridu dast “wallpaper”-a aldatuteko sartzien zaran bakotzan
#! /bin/bash FOLDER="${HOME}/wallpaper" COMMAND=`ls -1 ${FOLDER}` i=0 for C in ${COMMAND} do let "i += 1" array[$i]=$C done R=0 while [ $R -gt $i ] || [ $R -lt 1 ] do R=$RANDOM done # fluxbox fbsetbg -f ${FOLDER}/${array[R]} # gnome #gconftool-2 --set --type=string /desktop/gnome/background/picture_filename {FOLDER}/${array[R]} exit 0
fluxbox eta gnomentzako eindxe :)
#fastest way to get your random wallpaper
fbsetbg -f `ls ~/$FOLDER/* | shuf | tail -1`
gconftool-2 –set –type=string /desktop/gnome/background/picture_filename `ls ~/$FOLDER/* | shuf | tail -1`
Sorry, a small correction
FOLDER=~/Images/wallpapers/
gconftool-2 –set –type=string /desktop/gnome/background/picture_filename `ls $FOLDER | shuf | tail -1`