From c0a1cd7c56eb4a41b434c3aa2cb32b16f9813b53 Mon Sep 17 00:00:00 2001 From: nikolaizombie1 Date: Fri, 24 May 2024 10:41:52 -0400 Subject: [PATCH] Remove unnecessary delays --- waypaper/changer.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/waypaper/changer.py b/waypaper/changer.py index b5568b8..12a04c2 100644 --- a/waypaper/changer.py +++ b/waypaper/changer.py @@ -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":