From 131c7c8513ce52328d50526f1c9ccaa2e35a0d54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ferit=20Yi=C4=9Fit=20BALABAN?= Date: Sun, 12 Jun 2022 17:51:50 +0300 Subject: [PATCH] Update lock screen when wallpaper changes --- modeset2.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modeset2.py b/modeset2.py index 4d6429a..a8ae823 100755 --- a/modeset2.py +++ b/modeset2.py @@ -74,7 +74,10 @@ async def change_wallpaper(mode: int, cringe = False): file = f.read() f.close() list = file.split(region)[1].split("EOR")[0].lstrip('\n').splitlines() - command = f"wal -i {random.choice(list)}" + wallpaper = random.choice(list) + command = f"wal -i {wallpaper}" + await open_subprocess(command) + command = f"betterlockscreen -u {wallpaper}" await open_subprocess(command)