Commits

Michael  committed 8ccfa6a

updating wallrotate for gnome

  • Participants
  • Parent commits fff1388

Comments (0)

Files changed (1)

File wallrotate.rb

 #
 # Defaulting parameters which can be specified at the CLI
 #
-walldir = ARGV[0] || "/home/michael/wall/default/" 
+walldir = ARGV[0] || "/home/michael/Wallpapers/"
 #
 # Selects proper wallpaper randomly from the images in the directory
 #
 srand
-wallpaper = Dir[walldir + "*.{jpg,png,jpeg}"].choice
+wallpaper = Dir[walldir + "*.{jpg,png,jpeg,gif,BMP,bmp}"].choice
 #
 # Now it actually sets the wallpaper
 #
-%x{ /usr/bin/feh --bg-scale "#{ wallpaper }" } unless wallpaper.empty?
+%x{ gconftool-2 --type string --set /desktop/gnome/background/picture_filename "#{ wallpaper }" } unless wallpaper.empty?