Skip to content

Instantly share code, notes, and snippets.

@pry0cc
Created July 27, 2014 17:53
Show Gist options
  • Save pry0cc/f3a0a183c1afee7c5519 to your computer and use it in GitHub Desktop.
Save pry0cc/f3a0a183c1afee7c5519 to your computer and use it in GitHub Desktop.
A handy little script I wrote to randomly change my wallpapers with feh. Does require images to contain a 2 digit number - Like the images on wallbase.cc
#!/bin/bash
cd ~/Pictures/Wallbase/
while [ 1 ]
do
feh --bg-scale $(ls | grep $[ ( $RANDOM % 100 ) + 1 ])
sleep 10
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment