Add support for swww

This commit is contained in:
Colepng 2023-02-18 15:29:35 -05:00
parent 236aa48e74
commit 82332fbff9

View File

@ -59,7 +59,10 @@ def xfconf(img):
def set_wm_wallpaper(img):
"""Set the wallpaper for non desktop environments."""
if shutil.which("feh"):
if shutil.which("swww"):
util.disown(["swww", "img", img])
elif shutil.which("feh"):
util.disown(["feh", "--bg-fill", img])
elif shutil.which("xwallpaper"):