feat(emacs.d): Add interactive 'scrot-select' screenshot function

This commit is contained in:
Vincent Ambo 2020-01-26 19:13:42 +00:00
parent 29e1de2fd2
commit a2d0b7f399

View file

@ -259,4 +259,10 @@
(magit-status "~/depot"))
(warn "notmuch failed to render the raw message buffer"))))
(defun scrot-select ()
"Take a screenshot based on a mouse-selection and save it to
~/screenshots."
(interactive)
(shell-command "scrot '$a_%s.png' -s -e 'mv $f ~/screenshots/'"))
(provide 'functions)