mirror of
https://github.com/dylanaraps/pywal.git
synced 2025-06-19 17:19:08 +02:00
Added swaybg support
This commit is contained in:
parent
86f0c4cab9
commit
16e0aadbf5
@ -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"):
|
||||
|
Loading…
x
Reference in New Issue
Block a user