Update lock screen when wallpaper changes

This commit is contained in:
Ferit Yiğit BALABAN 2022-06-12 17:51:50 +03:00
parent 267e26ee51
commit 131c7c8513

View File

@ -74,7 +74,10 @@ async def change_wallpaper(mode: int, cringe = False):
file = f.read() file = f.read()
f.close() f.close()
list = file.split(region)[1].split("EOR")[0].lstrip('\n').splitlines() 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) await open_subprocess(command)