Advertisement
maya000

random_wallpaper.sh

Jun 11th, 2017
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.28 KB | None | 0 0
  1. #!/bin/bash
  2. # last updated : 2010/01/05 15:12:05 JST
  3. #
  4. # SET random Wallpapers for background.
  5. #
  6.  
  7. WALLPAPERS="$HOME/MyPictures/Wallpapers/1920x1080"
  8. ALIST=( `ls -w1 $WALLPAPERS` )
  9. RANGE=${#ALIST[*]}
  10. SHOW=$(( $RANDOM % $RANGE ))
  11.  
  12. feh --bg-scale $WALLPAPERS/${ALIST[$SHOW]}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement