ocamlPackages.hxd: 0.3.2 -> 0.3.3 (#364231)
[NixPkgs.git] / pkgs / development / python-modules / pywal / feh.patch
blob985e601d62572a56fb9d81e629b4ae3aa4b6b8c7
1 commit c31faa212e09aa62c232d9008e05976b1cdc9ee5
2 Author: Frederik Rietdijk <fridh@fridh.nl>
3 Date: Wed Dec 26 12:54:32 2018 +0100
5 nix: hardcode feh
7 diff --git a/pywal/wallpaper.py b/pywal/wallpaper.py
8 index ba61e66..fad34f7 100644
9 --- a/pywal/wallpaper.py
10 +++ b/pywal/wallpaper.py
11 @@ -47,27 +47,7 @@ def xfconf(path, img):
13 def set_wm_wallpaper(img):
14 """Set the wallpaper for non desktop environments."""
15 - if shutil.which("feh"):
16 - util.disown(["feh", "--bg-fill", img])
18 - elif shutil.which("nitrogen"):
19 - util.disown(["nitrogen", "--set-zoom-fill", img])
21 - elif shutil.which("bgs"):
22 - util.disown(["bgs", "-z", img])
24 - elif shutil.which("hsetroot"):
25 - util.disown(["hsetroot", "-fill", img])
27 - elif shutil.which("habak"):
28 - util.disown(["habak", "-mS", img])
30 - elif shutil.which("display"):
31 - util.disown(["display", "-backdrop", "-window", "root", img])
33 - else:
34 - logging.error("No wallpaper setter found.")
35 - return
36 + return util.disown(["@feh@", "--bg-fill", img])
39 def set_desktop_wallpaper(desktop, img):