[Newm] Get wallpaper from cache file

This commit is contained in:
Lucien Cartier-Tilet 2022-12-07 16:04:41 +01:00
parent 1c15014511
commit 36bfdfc6a8
Signed by: phundrak
GPG Key ID: BD7789E705CB8DCA

View File

@ -61,10 +61,11 @@ def on_startup():
)
background = {
"path": os.environ["HOME"] + "/Pictures/Wallpapers/1561879941868.jpg",
"anim": True,
}
with open("{}/.cache/wallpaper".format(os.environ["HOME"])) as file:
background = {
"path": file.read().strip(),
"anim": True,
}
pywm = {
"xkb_layout": "fr",