mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-06-29 13:00:02 +02:00
wallpaper: don't create symlinks
This is useless.
This commit is contained in:
parent
aaaebf3302
commit
01622fd884
1 changed files with 1 additions and 7 deletions
|
@ -82,15 +82,9 @@ print("wallpaper: {}".format(" + ".join(
|
|||
["`%s`" % x.filename[(len(options.directory) + 1):]
|
||||
for x in images])))
|
||||
|
||||
# Link chosen wallpapers
|
||||
for idx, image in enumerate(images):
|
||||
target = "{}.{}".format(options.target, idx)
|
||||
if os.path.lexists(target):
|
||||
os.remove(target)
|
||||
os.symlink(os.path.abspath(image.filename), target)
|
||||
|
||||
if len(screens) > 1 and len(images) == 1:
|
||||
# Wide wallpaper
|
||||
image = images[0]
|
||||
if image.size != (screen.width_in_pixels, screen.height_in_pixels):
|
||||
image = image.resize((screen.width_in_pixels, screen.height_in_pixels),
|
||||
Image.CUBIC)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue