diff options
| author | Stefan Kangas | 2022-09-14 13:22:22 +0200 |
|---|---|---|
| committer | Stefan Kangas | 2022-09-14 15:01:37 +0200 |
| commit | 4e207423eb74fae014e40a3027919bb11beb29aa (patch) | |
| tree | 11c61ed9feb6e74a77cc16077d0c9d22a454e351 /lisp/image | |
| parent | 0f4839fb6e17b193a67dcb089fb8ff15138a4129 (diff) | |
| download | emacs-4e207423eb74fae014e40a3027919bb11beb29aa.tar.gz emacs-4e207423eb74fae014e40a3027919bb11beb29aa.zip | |
Add :type to wallpaper-command
* lisp/image/wallpaper.el (wallpaper-command): Make it easier to
customize by adding a :type declaration covering all supported values.
Diffstat (limited to 'lisp/image')
| -rw-r--r-- | lisp/image/wallpaper.el | 25 |
1 files changed, 21 insertions, 4 deletions
diff --git a/lisp/image/wallpaper.el b/lisp/image/wallpaper.el index e25ce448c10..a3bf44a5c38 100644 --- a/lisp/image/wallpaper.el +++ b/lisp/image/wallpaper.el | |||
| @@ -47,6 +47,7 @@ | |||
| 47 | ;;; Finding the wallpaper command | 47 | ;;; Finding the wallpaper command |
| 48 | 48 | ||
| 49 | (defvar wallpaper--default-commands | 49 | (defvar wallpaper--default-commands |
| 50 | ;; When updating this, also update the custom :type for `wallpaper-command'. | ||
| 50 | '( | 51 | '( |
| 51 | ;; Sway (Wayland) | 52 | ;; Sway (Wayland) |
| 52 | ("swaybg" "-o" "*" "-i" "%f" "-m" "fill") | 53 | ("swaybg" "-o" "*" "-i" "%f" "-m" "fill") |
| @@ -124,16 +125,32 @@ will be replaced as described in `wallpaper-command-args'.") | |||
| 124 | "Executable used for setting the wallpaper. | 125 | "Executable used for setting the wallpaper. |
| 125 | A suitable command for your environment should be detected | 126 | A suitable command for your environment should be detected |
| 126 | automatically, so there is usually no need to customize this. | 127 | automatically, so there is usually no need to customize this. |
| 127 | However, if you do need to change this, you might also want to | 128 | |
| 128 | customize `wallpaper-command-args' to match. | 129 | If you set this to any supported command using customize or |
| 130 | `setopt', the user option `wallpaper-command-args' is | ||
| 131 | automatically updated to match. If you need to change this to an | ||
| 132 | unsupported command, you will want to manually customize | ||
| 133 | `wallpaper-command-args' to match. | ||
| 129 | 134 | ||
| 130 | Note: If you find that you need to use a command in your | 135 | Note: If you find that you need to use a command in your |
| 131 | environment that is not automatically detected, we would love to | 136 | environment that is not automatically detected, we would love to |
| 132 | hear about it! Please send an email to bug-gnu-emacs@gnu.org and | 137 | hear about it! Please send an email to bug-gnu-emacs@gnu.org and |
| 133 | tell us the command (and all options) that worked for you. You | 138 | tell us the command (and all options) that worked for you. You |
| 134 | can also use \\[report-emacs-bug]." | 139 | can also use \\[report-emacs-bug]." |
| 135 | :type '(choice string | 140 | :type |
| 136 | (const :tag "Not set" nil)) | 141 | '(choice |
| 142 | (radio | ||
| 143 | (const :tag "gsettings (GNOME)" "gsettings") | ||
| 144 | (const :tag "plasma-apply-wallpaperimage (KDE Plasma)" "plasma-apply-wallpaperimage") | ||
| 145 | (const :tag "swaybg (Wayland/Sway)" "swaybg") | ||
| 146 | (const :tag "wbg (Wayland)" "wbg") | ||
| 147 | (const :tag "gm (X Window System)" "gm") | ||
| 148 | (const :tag "display (X Window System)" "display") | ||
| 149 | (const :tag "feh (X Window System)" "feh") | ||
| 150 | (const :tag "xwallpaper (X Window System)" "xwallpaper") | ||
| 151 | (const :tag "xloadimage (X Window System)" "xloadimage") | ||
| 152 | (const :tag "xsetbg (X Window System)" "xsetbg")) | ||
| 153 | (const :tag "Other (specify)" string)) | ||
| 137 | :set #'wallpaper--set-wallpaper-command | 154 | :set #'wallpaper--set-wallpaper-command |
| 138 | :group 'image | 155 | :group 'image |
| 139 | :version "29.1") | 156 | :version "29.1") |