Added swaybg support

This commit is contained in:
Madiba Hudson-Quansah 2023-06-21 00:00:35 +00:00
parent 86f0c4cab9
commit 16e0aadbf5

View File

@ -59,7 +59,11 @@ def xfconf(img):
def set_wm_wallpaper(img):
"""Set the wallpaper for non desktop environments."""
if shutil.which("feh"):
if shutil.which("swayb"):
subprocess.call(["killall", "swaybg"])
util.disown(["swaybg", "-m", "fill", "-i", img])
elif shutil.which("feh"):
util.disown(["feh", "--bg-fill", img])
elif shutil.which("xwallpaper"):