|
From: | Jean Louis |
Subject: | Re: Screenshots, frame shots straight from Emacs |
Date: | Mon, 28 Jun 2021 09:47:23 +0300 |
User-agent: | Mutt/2.0.7+183 (3d24855) (2021-05-28) |
* Emanuel Berg <moasenwood@zoho.eu> [2021-06-25 19:55]: > Jean Louis wrote: > > >> (defun dump (desc) > >> (interactive "sdescription: ") > >> (message nil) > >> (let ((file (format "~/%s.png" desc))) > >> (shell-command (format "sudo fbgrab %s" file)) > >> (shell-command (format "sudo chown %s %s" user-login-name file)) > >> (shell-command (format "sudo chgrp %s %s" user-login-name file)) )) > > > > Sudo for screenshot? > > Leftovers, alright then - > > (defun dump (name) > (interactive "sname: ") > (message nil) > (let ((file (format "~/%s.png" name))) > (shell-command (format "fbgrab %s" file)) )) External program is dependency. Emacs has internal function for it,. -- Jean Take action in Free Software Foundation campaigns: https://www.fsf.org/campaigns In support of Richard M. Stallman https://stallmansupport.org/
[Prev in Thread] | Current Thread | [Next in Thread] |