Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
wallpaper: revert changes
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanaraps committed Dec 19, 2017
1 parent 05ef9be commit e03ad5c
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions pywal/wallpaper.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."""
Expand Down Expand Up @@ -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)
Expand All @@ -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."""
Expand Down

0 comments on commit e03ad5c

Please sign in to comment.