Variable: wallpaper--default-setters
wallpaper--default-setters is a variable defined in wallpaper.el.gz.
Value
Large value
(#s(wallpaper-setter "macOS" "osascript"
("-e"
"tell application \"Finder\" to set desktop picture to POSIX file \"%f\"")
#[0 "\301=\207" [system-type darwin] 2] nil nil)
#s(wallpaper-setter "Gnome" "gsettings"
("set" "org.gnome.desktop.background"
"picture-uri" "file://%F")
#[0
"\300\301!\203\300\301!\227\302\235\206!\303\304 \235\206!\305\304 \235\206!\306\304 \235\207"
[getenv "DESKTOP_SESSION"
("gnome" "gnome" "gnome-wayland"
"gnome-xorg" "unity" "ubuntu"
"pantheon" "budgie-desktop" "pop")
"GNOME" xdg-current-desktop "Budgie"
"GNOME-Classic"]
2]
nil nil)
#s(wallpaper-setter "KDE Plasma" "plasma-apply-wallpaperimage"
("%f")
#[0 "\300\301 \235\207"
["KDE" xdg-current-desktop] 2]
nil nil)
#s(wallpaper-setter "XFCE" "xfconf-query"
wallpaper-xfce-command-args
#[0
"\300\301!\203\300\301!\227\302\235\206\303\304 \235\207"
[getenv "DESKTOP_SESSION"
("xubuntu" "ubuntustudio") "XFCE"
xdg-current-desktop]
2]
nil nil)
#s(wallpaper-setter "LXDE" "pcmanfm" ("--set-wallpaper=%f")
#[0 "\300\301 \235\207"
["LXDE" xdg-current-desktop] 2]
nil nil)
#s(wallpaper-setter "LXQt" "pcmanfm-qt" ("--set-wallpaper=%f")
#[0
"\300\301!\205\n\300\301!\227\302\235\206\303\304 \235\207"
[getenv "DESKTOP_SESSION" ("lubuntu" "lxqt")
"LXQt" xdg-current-desktop]
2]
nil nil)
#s(wallpaper-setter "Mate" "gsettings"
("set" "org.mate.background" "picture-filename"
"%f")
#[0
"\300\301!\203\300\301!\227\302\232\206\303\304 \235\207"
[getenv "DESKTOP_SESSION" "mate" "MATE"
xdg-current-desktop]
2]
nil nil)
#s(wallpaper-setter "Cinnamon" "gsettings"
("set" "org.cinnamon.desktop.background"
"picture-uri" "file://%F")
#[0
"\300\301!\205\n\300\301!\227\302\232\206\303\304 \235\207"
[getenv "DESKTOP_SESSION" "cinnamon"
"X-Cinnamon" xdg-current-desktop]
2]
nil nil)
#s(wallpaper-setter "Deepin" "gsettings"
("set"
"com.deepin.wrap.gnome.desktop.background"
"picture-uri" "file://%F")
#[0 "\300\301 \235\207"
["Deepin" xdg-current-desktop] 2]
nil nil)
#s(wallpaper-setter "Sway (Wayland)" "swaybg"
("-o" "*" "-i" "%f" "-m" "fill")
#[0 "\300\301!\205 \300\302!\207"
[getenv "WAYLAND_DISPLAY" "SWAYSOCK"] 2]
#[0
"\301\302\303\300\"\304\305\306 \"\"\211\2055\211\211\2053\211@\307\236A\310\236A\311\312\313#!\203-\314\315\"\210\266A\202\262\207"
["swaybg" seq-filter make-closure
#[257
"\301\236A\302\236A\303 U\205\211\300\232\207"
[V0 euid comm user-uid] 5
("/nix/store/yvwy8dm26cpa1j12ixgs1dyiaw2abdk9-emacs-snapshot/share/emacs/31.0.50/lisp/image/wallpaper.elc"
. 7831)]
mapcar
#[257 "\300B\301!B\207"
[pid process-attributes] 4
("/nix/store/yvwy8dm26cpa1j12ixgs1dyiaw2abdk9-emacs-snapshot/share/emacs/31.0.50/lisp/image/wallpaper.elc"
. 7845)]
list-system-processes comm pid y-or-n-p
format "Kill \"%s\" process with PID %d?"
signal-process TERM]
10]
t)
#s(wallpaper-setter "wbg" "wbg" ("%f")
#[0 "\300\301!\207" [getenv "WAYLAND_DISPLAY"]
2]
#[0
"\301\302\303\300\"\304\305\306 \"\"\211\2055\211\211\2053\211@\307\236A\310\236A\311\312\313#!\203-\314\315\"\210\266A\202\262\207"
["wbg" seq-filter make-closure
#[257
"\301\236A\302\236A\303 U\205\211\300\232\207"
[V0 euid comm user-uid] 5
("/nix/store/yvwy8dm26cpa1j12ixgs1dyiaw2abdk9-emacs-snapshot/share/emacs/31.0.50/lisp/image/wallpaper.elc"
. 7831)]
mapcar
#[257 "\300B\301!B\207"
[pid process-attributes] 4
("/nix/store/yvwy8dm26cpa1j12ixgs1dyiaw2abdk9-emacs-snapshot/share/emacs/31.0.50/lisp/image/wallpaper.elc"
. 7845)]
list-system-processes comm pid y-or-n-p
format "Kill \"%s\" process with PID %d?"
signal-process TERM]
10]
t)
#s(wallpaper-setter "GraphicsMagick" "gm"
("display" "-size" "%wx%h" "-window" "root"
"%f")
nil nil nil)
#s(wallpaper-setter "ImageMagick" "display"
("-resize" "%wx%h" "-window" "root" "%f") nil
nil nil)
#s(wallpaper-setter "feh" "feh" ("--bg-max" "%f") nil nil nil)
#s(wallpaper-setter "fbsetbg" "fbsetbg" ("-a" "%f") nil nil nil)
#s(wallpaper-setter "xwallpaper" "xwallpaper" ("--zoom" "%f") nil
nil nil)
#s(wallpaper-setter "hsetroot" "hsetroot" ("-full" "%f") nil nil
nil)
#s(wallpaper-setter "xloadimage" "xloadimage"
("-onroot" "-fullscreen" "%f") nil nil nil)
#s(wallpaper-setter "xsetbg" "xsetbg" ("%f") nil nil nil))
Documentation
List of setters used for setting the wallpaper.
Every item in the list is a structure of type
wallpaper-setter (which see).
This is used by wallpaper--find-command to automatically set
wallpaper-command, and by wallpaper--find-command-args to set
wallpaper-command-args. The setters will be tested in the
order in which they appear.
Source Code
;; Defined in /usr/src/emacs/lisp/image/wallpaper.el.gz
(defvar wallpaper--default-setters
(wallpaper--default-methods-create
;; macOS.
;; NB. Should come first to override everything else.
("macOS"
"osascript"
'("-e" "tell application \"Finder\" to set desktop picture to POSIX file \"%f\"")
:predicate (lambda ()
(eq system-type 'darwin)))
;; Desktop environments.
("Gnome"
"gsettings"
"set org.gnome.desktop.background picture-uri file://%F"
:predicate (lambda ()
(or (and (getenv "DESKTOP_SESSION")
(member (downcase (getenv "DESKTOP_SESSION"))
'("gnome" "gnome" "gnome-wayland" "gnome-xorg"
"unity" "ubuntu" "pantheon" "budgie-desktop"
"pop")))
(member "GNOME" (xdg-current-desktop))
(member "Budgie" (xdg-current-desktop))
(member "GNOME-Classic" (xdg-current-desktop)))))
("KDE Plasma"
"plasma-apply-wallpaperimage" "%f"
:predicate (lambda ()
(member "KDE" (xdg-current-desktop))))
("XFCE"
"xfconf-query" #'wallpaper-xfce-command-args
:predicate (lambda ()
(or (and (getenv "DESKTOP_SESSION")
(member (downcase (getenv "DESKTOP_SESSION"))
'("xubuntu" "ubuntustudio")))
(member "XFCE" (xdg-current-desktop)))))
("LXDE"
"pcmanfm" "--set-wallpaper=%f"
:predicate (lambda ()
(member "LXDE" (xdg-current-desktop))))
("LXQt"
"pcmanfm-qt" "--set-wallpaper=%f" ; "--wallpaper-mode=MODE"
:predicate (lambda ()
(or (member (and (getenv "DESKTOP_SESSION")
(downcase (getenv "DESKTOP_SESSION")))
'("lubuntu" "lxqt"))
(member "LXQt" (xdg-current-desktop)))))
("Mate"
"gsettings" "set org.mate.background picture-filename %f"
:predicate (lambda ()
(or (and (getenv "DESKTOP_SESSION")
(equal "mate" (downcase (getenv "DESKTOP_SESSION"))))
(member "MATE" (xdg-current-desktop)))))
("Cinnamon"
"gsettings" "set org.cinnamon.desktop.background picture-uri file://%F"
:predicate (lambda ()
(or (equal "cinnamon" (and (getenv "DESKTOP_SESSION")
(downcase (getenv "DESKTOP_SESSION"))))
(member "X-Cinnamon" (xdg-current-desktop)))))
("Deepin"
"gsettings" "set com.deepin.wrap.gnome.desktop.background picture-uri file://%F"
:predicate (lambda ()
(member "Deepin" (xdg-current-desktop))))
;; Wayland general.
("Sway (Wayland)"
"swaybg" "-o * -i %f -m fill"
:predicate (lambda ()
(and (getenv "WAYLAND_DISPLAY")
(getenv "SWAYSOCK")))
:init-action (wallpaper--init-action-kill "swaybg")
:detach t)
("wbg"
"wbg" "%f"
:predicate (lambda ()
(getenv "WAYLAND_DISPLAY"))
:init-action (wallpaper--init-action-kill "wbg")
:detach t)
;; X general.
("GraphicsMagick"
"gm" "display -size %wx%h -window root %f")
("ImageMagick"
"display" "-resize %wx%h -window root %f")
("feh"
"feh" "--bg-max %f")
("fbsetbg"
"fbsetbg" "-a %f")
("xwallpaper"
"xwallpaper" "--zoom %f")
("hsetroot"
"hsetroot" "-full %f")
("xloadimage"
"xloadimage" "-onroot -fullscreen %f")
("xsetbg"
"xsetbg" "%f")
)
"List of setters used for setting the wallpaper.
Every item in the list is a structure of type
`wallpaper-setter' (which see).
This is used by `wallpaper--find-command' to automatically set
`wallpaper-command', and by `wallpaper--find-command-args' to set
`wallpaper-command-args'. The setters will be tested in the
order in which they appear.")