mirror of
https://github.com/anufrievroman/waypaper.git
synced 2024-11-26 00:13:06 +03:00
Merge pull request #50 from nikolaizombie1/fix-hyprpaper-unload-bug
fix: Hyprpaper would unload wallpaper before being applied.
This commit is contained in:
commit
b25a5fbac5
@ -97,11 +97,9 @@ def change_wallpaper(image_path, cf, monitor, txt):
|
||||
monitor = ""
|
||||
wallpaper_command = ["hyprctl", "hyprpaper", "wallpaper", f"{monitor},{image_path}"]
|
||||
unload_command = ["hyprctl", "hyprpaper", "unload", "all"]
|
||||
subprocess.Popen(preload_command)
|
||||
time.sleep(0.1)
|
||||
subprocess.Popen(wallpaper_command)
|
||||
time.sleep(0.1)
|
||||
subprocess.Popen(unload_command)
|
||||
subprocess.Popen(preload_command)
|
||||
subprocess.Popen(wallpaper_command)
|
||||
|
||||
elif cf.backend == "none":
|
||||
pass
|
||||
|
Loading…
Reference in New Issue
Block a user