Created
September 22, 2016 15:21
-
-
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
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
#!/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