Skip to content

Commit

Permalink
Add support for swww
Browse files Browse the repository at this point in the history
  • Loading branch information
Colepng authored and eylles committed Jul 31, 2023
1 parent ce06408 commit 5014f82
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pywal/wallpaper.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"):
Expand Down

0 comments on commit 5014f82

Please sign in to comment.