TEXT   19

change background

Guest on 24th January 2023 01:56:55 PM


  1. while [ 1 ]; do
  2.         num=`ls ~/Backgrounds/* | wc -l`
  3.         rand=`jot -r 1 1 $num`
  4.         i=0
  5.  
  6.         for f in ~/Backgrounds/*; do
  7.                 if [ $i = $rand ]; then
  8.                         gconftool-2 -s -t string /desktop/gnome/background/picture_filename $f
  9.                 fi
  10.                 i=$(( $i+1 ))
  11.         done
  12.  
  13.         sleep 900
  14. done

Raw Paste


Login or Register to edit or fork this paste. It's free.

">