From 36bfdfc6a881a1005994ce3235ece75bf9d91c1e Mon Sep 17 00:00:00 2001 From: Lucien Cartier-Tilet Date: Wed, 7 Dec 2022 16:04:41 +0100 Subject: [PATCH] [Newm] Get wallpaper from cache file --- .config/newm/config.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.config/newm/config.py b/.config/newm/config.py index e688bae..133d3ad 100644 --- a/.config/newm/config.py +++ b/.config/newm/config.py @@ -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",