diff options
Diffstat (limited to 'configs/shared/.emacs.d/wpc/wallpaper.el')
-rw-r--r-- | configs/shared/.emacs.d/wpc/wallpaper.el | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/configs/shared/.emacs.d/wpc/wallpaper.el b/configs/shared/.emacs.d/wpc/wallpaper.el index 63548964b76d..841fe5428e7a 100644 --- a/configs/shared/.emacs.d/wpc/wallpaper.el +++ b/configs/shared/.emacs.d/wpc/wallpaper.el @@ -31,8 +31,15 @@ "My preferred computer wallpapers.") (defun wallpaper/set (path) - "Set computer wallpaper to image at `PATH' using `feh` under-the-hood." - (shell-command (string/format "feh --bg-scale --no-fehbg %s" path))) + "Set computer wallpaper to image at `PATH' using `feh` under-the-hood. +`PATH' can be absolute or relative since `f-expand' is called in the function + body to ensure feh can resolve the path." + (start-process "*feh<wallpaper/set>*" + nil + "feh" + "--bg-scale" + "--no-feh-bg" + (f-expand path))) (defun wallpaper/whitelist-set (wallpaper) "Focuses the WALLPAPER in the `wallpaper/whitelist' cycle." |