summaryrefslogtreecommitdiff
path: root/pywal/wallpaper.py
diff options
context:
space:
mode:
authorVesiv <register626@gmail.com>2018-10-06 02:14:11 -0400
committerVesiv <register626@gmail.com>2018-10-06 02:14:11 -0400
commit48c603521b5a3a05c6dc6ae497fde9f092d515ab (patch)
tree0876ed9ce30cb1cdc42e272203aa0013b3325826 /pywal/wallpaper.py
parent33c82904527db34965225b6bd3940ade51915dae (diff)
Added support for AwesomeWM in the wallpaper set function
Diffstat (limited to 'pywal/wallpaper.py')
-rw-r--r--pywal/wallpaper.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/pywal/wallpaper.py b/pywal/wallpaper.py
index 19a46f6..2b8fe6f 100644
--- a/pywal/wallpaper.py
+++ b/pywal/wallpaper.py
@@ -32,6 +32,10 @@ def get_desktop_env():
if desktop:
return "SWAY"
+ desktop = os.environ.get("DESKTOP_STARTUP_ID")
+ if desktop and "awesome" in desktop:
+ return "AWESOME"
+
return None
@@ -92,10 +96,12 @@ def set_desktop_wallpaper(desktop, img):
elif "sway" in desktop:
util.disown(["swaymsg", "output", "*", "bg", img, "fill"])
+ elif "awesome" in desktop:
+ util.disown(["awesome-client", "gears.wallpaper.maximized(", img, ")"])
+
else:
set_wm_wallpaper(img)
-
def set_mac_wallpaper(img):
"""Set the wallpaper on macOS."""
db_file = "Library/Application Support/Dock/desktoppicture.db"