commit 84c155eaf0e90f30dc0925d1328c829585764f9b parent 474a624d7911c7b1046bf49168ba16eb52a9899a Author: Oleh Krehel <ohwoeowho@gmail.com> Date: Thu, 31 Oct 2013 15:15:51 +0100 org-download.el (org-download-gnome-screenshot): new function. Diffstat:
| M | org-download.el | | | 9 | ++++++++- |
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/org-download.el b/org-download.el @@ -197,10 +197,17 @@ scrot supports: 1. capture window: single click 2. general area: mouse drag" (interactive) - (let ((link (format-time-string "/tmp/screenshot.png"))) + (let ((link "/tmp/screenshot.png")) (shell-command (format "scrot -s %s" link)) (org-download-image link))) +(defun org-download-gnome-screenshot () + "Call gnome-screenshot and insert the resulting file." + (interactive) + (let ((link "/tmp/screenshot.png")) + (shell-command (format "gnome-screenshot -f %s" link)) + (org-download-image link))) + (defun org-download-image (link) "Save image at address LINK to `org-download--dir'." (interactive "sUrl: ")