emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master f0798ac13d 2/2: Support wbg in wallpaper.el (Bug#57781)


From: Stefan Kangas
Subject: master f0798ac13d 2/2: Support wbg in wallpaper.el (Bug#57781)
Date: Wed, 14 Sep 2022 01:21:03 -0400 (EDT)

branch: master
commit f0798ac13dcb4c01a883f165e03c3cd7f208667c
Author: Stefan Kangas <stefankangas@gmail.com>
Commit: Stefan Kangas <stefankangas@gmail.com>

    Support wbg in wallpaper.el (Bug#57781)
    
    * lisp/image/wallpaper.el (wallpaper-commands): Add "wbg".
    (wallpaper--check-command): New cl-defmethod for "wbg".
---
 lisp/image/wallpaper.el | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/lisp/image/wallpaper.el b/lisp/image/wallpaper.el
index 4c90559183..ca2b36db2e 100644
--- a/lisp/image/wallpaper.el
+++ b/lisp/image/wallpaper.el
@@ -38,6 +38,8 @@
   '(
     ;; 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
@@ -89,6 +91,9 @@ You can also use \\[report-emacs-bug]."
   (and (getenv "WAYLAND_DISPLAY")
        (getenv "SWAYSOCK")))
 
+(cl-defmethod wallpaper--check-command ((_type (eql 'wbg)))
+  (getenv "WAYLAND_DISPLAY"))
+
 (cl-defmethod wallpaper--check-command (_type)
   t)
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]