mirror of
https://github.com/anufrievroman/waypaper.git
synced 2024-08-16 19:50:46 +03:00
Remove unnecessary delays
This commit is contained in:
parent
ecff998be1
commit
c0a1cd7c56
@ -97,10 +97,8 @@ def change_wallpaper(image_path, cf, monitor, txt):
|
||||
monitor = ""
|
||||
wallpaper_command = ["hyprctl", "hyprpaper", "wallpaper", f"{monitor},{image_path}"]
|
||||
unload_command = ["hyprctl", "hyprpaper", "unload", "all"]
|
||||
time.sleep(0.1)
|
||||
subprocess.Popen(unload_command)
|
||||
subprocess.Popen(preload_command)
|
||||
time.sleep(0.1)
|
||||
subprocess.Popen(wallpaper_command)
|
||||
|
||||
elif cf.backend == "none":
|
||||
|
Loading…
Reference in New Issue
Block a user