mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-07-15 12:44:21 +02:00
wallpaper: log the files used to build the wallpaper
This commit is contained in:
parent
e3fd83eab4
commit
95113f1927
1 changed files with 1 additions and 0 deletions
|
@ -60,6 +60,7 @@ for root, _, files in os.walk(os.path.join(options.directory)):
|
||||||
images = random.sample(images,
|
images = random.sample(images,
|
||||||
len(screens) + \
|
len(screens) + \
|
||||||
random.randint(0, 3)) # Randomly favor larger images
|
random.randint(0, 3)) # Randomly favor larger images
|
||||||
|
print "Build new wallpaper with %s" % " + ".join(["`%s`" % x[(len(options.directory) + 1):] for x in images])
|
||||||
images = [Image.open(os.path.join(options.directory,
|
images = [Image.open(os.path.join(options.directory,
|
||||||
image)) for image in images]
|
image)) for image in images]
|
||||||
images.sort(key=lambda image: -image.size[0]*image.size[1])
|
images.sort(key=lambda image: -image.size[0]*image.size[1])
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue