commit 3c4810279334d487c76fb5e23e6e6cd098ccd6ac
parent 70401884e9780e64dfd313d8af52d643d1798aee
Author: Bruno Bigras <bigras.bruno@gmail.com>
Date: Tue, 11 Feb 2020 10:41:55 -0500
add grim + slurp method for Wayland
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/org-download.el b/org-download.el
@@ -145,6 +145,8 @@ will be used."
"xclip -selection clipboard -t image/png -o > %s")
;; take an image that is already on the clipboard, for Windows
(const :tag "imagemagick/convert" "convert clipboard: %s")
+ ; capture region, for Wayland
+ (const :tag "grim + slurp" "grim -g \"$(slurp)\" %s")
(function :tag "Custom function")))
(defcustom org-download-screenshot-file (expand-file-name "screenshot.png" temporary-file-directory)