-
-
Save jleedev/299026 to your computer and use it in GitHub Desktop.
Wallpaper rotation script
This file contains hidden or 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
#!/usr/bin/env ruby | |
srand | |
command = ["/usr/bin/feh","--bg-scale"] | |
dir = ARGV[0] || "/home/michael/wall/default/" | |
choice = Dir[dir + "*.{jpg,png,jpeg}"].choice | |
system *([command] + [choice]) unless choice.empty? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment