* lisp/image/wallpaper.el (wallpaper-commands): Add "wbg".
(wallpaper--check-command): New cl-defmethod for "wbg".
'(
;; Sway (Wayland)
("swaybg" "-o" "*" "-i" "%f" "-m" "fill")
+ ;; Wayland General
+ ("wbg" %f)
;; Gnome
("gsettings" "set" "org.gnome.desktop.background" "picture-uri" "file://%f")
;; Other / General X
(and (getenv "WAYLAND_DISPLAY")
(getenv "SWAYSOCK")))
+(cl-defmethod wallpaper--check-command ((_type (eql 'wbg)))
+ (getenv "WAYLAND_DISPLAY"))
+
(cl-defmethod wallpaper--check-command (_type)
t)