Update lock screen when wallpaper changes
This commit is contained in:
parent
267e26ee51
commit
131c7c8513
@ -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)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user