Skip to content

Instantly share code, notes, and snippets.

@EduardoLopes
Created September 22, 2016 15:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save EduardoLopes/bf995e19d1a6055d7585f2779c375c36 to your computer and use it in GitHub Desktop.
Save EduardoLopes/bf995e19d1a6055d7585f2779c375c36 to your computer and use it in GitHub Desktop.
Phyton script to randomly change wallpaper on lubuntu picking the wallpaper form a folder
#!/usr/bin/env python
import os,random
wallpapers_dir = '/media/100/Wallpapers/';
wallpaper = random.choice(os.listdir(wallpapers_dir))
os.system("pcmanfm --set-wallpaper="+wallpapers_dir+wallpaper)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment