From 16e0aadbf5dcb36a8943a060e250999d08f0f579 Mon Sep 17 00:00:00 2001 From: Madiba Hudson-Quansah Date: Wed, 21 Jun 2023 00:00:35 +0000 Subject: [PATCH] Added swaybg support --- pywal/wallpaper.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pywal/wallpaper.py b/pywal/wallpaper.py index 6a50627..3ac5d02 100644 --- a/pywal/wallpaper.py +++ b/pywal/wallpaper.py @@ -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"):