org-download

a fork of abo-abo's org-download
git clone https://git.trogloxene.org/org-download.git
Log | Files | Refs | README

commit 2d74f1ac0cae6c11651b7850e05be788ac470704
parent 10c9d7c8eed928c88a896310c882e3af4d8d0f61
Author: Oleh Krehel <ohwoeowho@gmail.com>
Date:   Wed,  9 Oct 2019 10:59:00 +0200

org-download.el (org-download-screenshot-method): Add screenshot+cliboard method

Fixes #108

Diffstat:
Morg-download.el | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/org-download.el b/org-download.el @@ -132,6 +132,8 @@ will be used." (const :tag "scrot" "scrot -s %s") (const :tag "gm" "gm import %s") (const :tag "imagemagick/import" "import %s") + (const :tag "imagemagick/import + xclip to save to clipboard" + "export filename=\"%s\"; import png:\"$filename\" ;xclip -selection clipboard -target image/png -filter < \"$filename\" &>/dev/null") ;; screenshot method in ms-windows, /capture=4 stands for interactive. (const :tag "IrfanView" "i_view64 /capture=4 /convert=\"%s\"") ;; screenshot script in osx, -i stands for interactive, @@ -140,7 +142,7 @@ will be used." (const :tag "screencapture" "screencapture -i %s") ;; take an image that is already on the clipboard, for Linux (const :tag "xclip" - "xclip -selection clipboard -t image/png -o > %s") + "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") (function :tag "Custom function")))