mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-06-26 19:58:35 +02:00
wallpaper: save the wallpaper as a PNG image
This commit is contained in:
parent
9b0995552b
commit
648c75cc9f
1 changed files with 1 additions and 1 deletions
|
@ -84,5 +84,5 @@ for index in range(len(screens)):
|
||||||
assert background, "Don't know the size of the display area"
|
assert background, "Don't know the size of the display area"
|
||||||
with tempfile.NamedTemporaryFile(delete=False,
|
with tempfile.NamedTemporaryFile(delete=False,
|
||||||
dir=os.path.dirname(os.path.realpath(options.target))) as tmp:
|
dir=os.path.dirname(os.path.realpath(options.target))) as tmp:
|
||||||
background.save(tmp, "jpeg")
|
background.save(tmp, "png")
|
||||||
os.rename(tmp.name, options.target)
|
os.rename(tmp.name, options.target)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue