Created
June 13, 2011 01:49
-
-
Save nibalizer/1022217 to your computer and use it in GitHub Desktop.
quick WANT NEW BG script, also
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "Changing BG image" | |
cd ~/Images/wp | |
RANGE=`ls | wc -l` | |
number=$RANDOM | |
let "number %= $RANGE" | |
index=0 | |
for i in `ls` | |
do | |
let "index += 1" | |
if [ "$index" -eq $number ] | |
then | |
echo "setting bg image to " $i | |
feh --bg-fill $i | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment