mirror of
https://github.com/dylanaraps/pywal.git
synced 2025-07-17 14:35:04 +02:00
Added swaybg support
This commit is contained in:
@ -59,7 +59,11 @@ def xfconf(img):
|
|||||||
|
|
||||||
def set_wm_wallpaper(img):
|
def set_wm_wallpaper(img):
|
||||||
"""Set the wallpaper for non desktop environments."""
|
"""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])
|
util.disown(["feh", "--bg-fill", img])
|
||||||
|
|
||||||
elif shutil.which("xwallpaper"):
|
elif shutil.which("xwallpaper"):
|
||||||
|
Reference in New Issue
Block a user