feat(emacs.d): Add interactive 'scrot-select' screenshot function
This commit is contained in:
parent
29e1de2fd2
commit
a2d0b7f399
1 changed files with 6 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue