summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDylan Araps <dylan.araps@gmail.com>2017-12-19 14:41:18 +1100
committerDylan Araps <dylan.araps@gmail.com>2017-12-19 14:41:18 +1100
commite03ad5c70ee73e9915c499e87722b851b01924bb (patch)
treeec962fe1217146e0f5de60805f6e6c2e46009bb2
parent05ef9be124c55a9840769022cc79796a0501870d (diff)
wallpaper: revert changes
-rw-r--r--pywal/wallpaper.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/pywal/wallpaper.py b/pywal/wallpaper.py
index 612d03a..1521d31 100644
--- a/pywal/wallpaper.py
+++ b/pywal/wallpaper.py
@@ -31,8 +31,6 @@ def get_desktop_env():
if desktop:
return "SWAY"
- return "WM"
-
def xfconf(path, img):
"""Call xfconf to set the wallpaper on XFCE."""
@@ -66,10 +64,7 @@ def set_desktop_wallpaper(desktop, img):
"""Set the wallpaper for the desktop environment."""
desktop = str(desktop).lower()
- if desktop == "wm":
- set_wm_wallpaper(img)
-
- elif "xfce" in desktop or "xubuntu" in desktop:
+ if "xfce" in desktop or "xubuntu" in desktop:
# XFCE requires two commands since they differ between versions.
xfconf("/backdrop/screen0/monitor0/image-path", img)
xfconf("/backdrop/screen0/monitor0/workspace0/last-image", img)
@@ -91,6 +86,9 @@ def set_desktop_wallpaper(desktop, img):
elif "sway" in desktop:
util.disown(["swaymsg", "output", "*", "bg", img, "fill"])
+ else:
+ set_wm_wallpaper(img)
+
def set_mac_wallpaper(img):
"""Set the wallpaper on macOS."""