DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Snippets has posted 5883 posts at DZone. View Full User Profile

Linux - Random BG Enligthnment

12.08.2006
| 3069 views |
  • submit to reddit
        
import os
import random

listBG = os.popen('eesh background list').readlines()[:-5]
elemBG = random.choice(listBG)
os.popen('eesh background use ' + elemBG[:-2])