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 = ""
|
monitor = ""
|
||||||
wallpaper_command = ["hyprctl", "hyprpaper", "wallpaper", f"{monitor},{image_path}"]
|
wallpaper_command = ["hyprctl", "hyprpaper", "wallpaper", f"{monitor},{image_path}"]
|
||||||
unload_command = ["hyprctl", "hyprpaper", "unload", "all"]
|
unload_command = ["hyprctl", "hyprpaper", "unload", "all"]
|
||||||
time.sleep(0.1)
|
|
||||||
subprocess.Popen(unload_command)
|
subprocess.Popen(unload_command)
|
||||||
subprocess.Popen(preload_command)
|
subprocess.Popen(preload_command)
|
||||||
time.sleep(0.1)
|
|
||||||
subprocess.Popen(wallpaper_command)
|
subprocess.Popen(wallpaper_command)
|
||||||
|
|
||||||
elif cf.backend == "none":
|
elif cf.backend == "none":
|
||||||
|
Loading…
Reference in New Issue
Block a user