Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- lim=`ls -1 $DIR_WALLPAPERS | wc -l`
- number=$[ ($RANDOM % $lim) + 1]
- count=1
- for file in $DIR_WALLPAPERS/*; do
- if [ $count = $number ];then
- feh --bg-scale $file
- break
- fi
- count=$[$count+1]
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement