Remove unnecessary delays

This commit is contained in:
nikolaizombie1 2024-05-24 10:41:52 -04:00
parent ecff998be1
commit c0a1cd7c56

View File

@ -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":